Online coding judge time validator
+4
Admin
chess1424
casvel
MSilverio
8 participantes
Página 1 de 1.
Online coding judge time validator
First of all, we want to thank you for your participation in the Oracle MDC Coding Contest.
We’ve had a lot of fun in this first contest, but have also learned a lot.
One of them being that it was not as easy to integrate the online coding judge as we had thought it would be.
Especially as in our case the output is not a single solution, but a more challenging problem that has many possible outputs which need to be parsed as well.
We’ve learned a lot which should help us in future contests.
Now while we had the validator online as well we also strongly believe in code efficiency.
From the start we had said the winner will be determined by the following formula:
(length_solution)^2 / execution_time
From our internal testing the longest solution are not always the fastest.
To validate execution time we do need you to upload your code to a new online judge which is now integrated w/ our output validator.
To validate you code check the steps described as follows:
- Enter the link below and create an account with the same email address used on the coding challenge app.
http://52.32.1.227/index.php/login
Once you login on the platform, perform the following steps:
- Go to the submit section on left side.
- In the "problem" option select the only problem available (MovieNamesProblem).
- Then select the programming language of your solution, C, C++, Python 2/3 and Java are available.
- Select a single file with the source code for your solution (check considerations*).
- Press submit to validate your source code.
Once you submit your code, a score will be generated, which we will take into account to determine the winner of the Oracle MDC Coding Contest. This score will be posted on the leaderboard of the app for the coding challenge (https://apex.oracle.com/pls/otn/f?p=62376:1).
* Considerations:
- To evaluate your code correctly you need to make the necessary adjustment.
- The code must use the standard input for reading the movie names. Standard input can be tested using the command line, for example:
cat movienames.txt | python solution.py
If you are reading the movie names directly from a file, you have to change your source code to make it work this way.
- The output with the string generated by your code must be printed using the standard output, for example:
System.out.println("this is my solution...")
Make sure you are not printing any other string.
As mentioned in a prior post we have extended the new deadline for the contest to be January 15th. This should allow everyone with working solutions to make the needed adjustments for the new online judge as well as fine tune their code efficiency to achieve maximum combined score.
Any solution that is “fixed” against the input data will be disqualified.
Hope you enjoy the challenge and have fun!
We’ve had a lot of fun in this first contest, but have also learned a lot.
One of them being that it was not as easy to integrate the online coding judge as we had thought it would be.
Especially as in our case the output is not a single solution, but a more challenging problem that has many possible outputs which need to be parsed as well.
We’ve learned a lot which should help us in future contests.
Now while we had the validator online as well we also strongly believe in code efficiency.
From the start we had said the winner will be determined by the following formula:
(length_solution)^2 / execution_time
From our internal testing the longest solution are not always the fastest.
To validate execution time we do need you to upload your code to a new online judge which is now integrated w/ our output validator.
To validate you code check the steps described as follows:
- Enter the link below and create an account with the same email address used on the coding challenge app.
http://52.32.1.227/index.php/login
Once you login on the platform, perform the following steps:
- Go to the submit section on left side.
- In the "problem" option select the only problem available (MovieNamesProblem).
- Then select the programming language of your solution, C, C++, Python 2/3 and Java are available.
- Select a single file with the source code for your solution (check considerations*).
- Press submit to validate your source code.
Once you submit your code, a score will be generated, which we will take into account to determine the winner of the Oracle MDC Coding Contest. This score will be posted on the leaderboard of the app for the coding challenge (https://apex.oracle.com/pls/otn/f?p=62376:1).
* Considerations:
- To evaluate your code correctly you need to make the necessary adjustment.
- The code must use the standard input for reading the movie names. Standard input can be tested using the command line, for example:
cat movienames.txt | python solution.py
If you are reading the movie names directly from a file, you have to change your source code to make it work this way.
- The output with the string generated by your code must be printed using the standard output, for example:
System.out.println("this is my solution...")
Make sure you are not printing any other string.
As mentioned in a prior post we have extended the new deadline for the contest to be January 15th. This should allow everyone with working solutions to make the needed adjustments for the new online judge as well as fine tune their code efficiency to achieve maximum combined score.
Any solution that is “fixed” against the input data will be disqualified.
Hope you enjoy the challenge and have fun!
Re: Online coding judge time validator
what is the size limit of the files?
MSilverio- Mensajes : 5
Fecha de inscripción : 16/11/2015
Re: Online coding judge time validator
I'm getting:
Test 1
WRONG
But the code I'm submitting is the same I used to generate the strings that you already validated. I'm reading form stdin and printing to stdout. Any help?
Test 1
WRONG
But the code I'm submitting is the same I used to generate the strings that you already validated. I'm reading form stdin and printing to stdout. Any help?
casvel- Mensajes : 2
Fecha de inscripción : 20/11/2015
Re: Online coding judge time validator
MSilverio escribió:what is the size limit of the files?
The max upload size was changed, you should not have problems.
casvel escribió:
I'm getting:
Test 1
WRONG
But the code I'm submitting is the same I used to generate the strings that you already validated. I'm reading form stdin and printing to stdout. Any help?
Hi, we will check your case on the online judge. We'll send you and email if there are any news.
Re: Online coding judge time validator
Why I'm getting
Test 1
WRONG
I'm using the same code to generate the string that you already validated =(.
Test 1
WRONG
I'm using the same code to generate the string that you already validated =(.
chess1424- Mensajes : 6
Fecha de inscripción : 04/01/2016
Re: Online coding judge time validator
chess1424 escribió:Why I'm getting
Test 1
WRONG
I'm using the same code to generate the string that you already validated =(.
It's the same problem that casvel is having. We are working on it.
Re: Online coding judge time validator
What does mean FIle not found in the status of my last submission ? Can anybody help me ?
chess1424- Mensajes : 6
Fecha de inscripción : 04/01/2016
Re: Online coding judge time validator
Hi,
We fix a problem on the online judge, maybe that was your problems too, you should be able to check the score of your last submissions.
We fix a problem on the online judge, maybe that was your problems too, you should be able to check the score of your last submissions.
Re: Online coding judge time validator
I have the same problem as chess1424. It seems that the validator does not pass a file as a parameter to the solution.
I'm programming in java.
Error: Runtime Error (java.lang.ArrayIndexOutOfBoundsException)
I'm programming in java.
Error: Runtime Error (java.lang.ArrayIndexOutOfBoundsException)
Última edición por riscen el Lun Ene 11, 2016 9:13 pm, editado 1 vez
riscen- Mensajes : 1
Fecha de inscripción : 05/01/2016
What is wrong with this?
Hi,
So after many tests I decided to write the dumbest program in world and just print out the longest movie. The online validator still doesn't accept it (marks both tests as "wrong"):
Compiling this (just g++ main.cpp) and running ./a.out < all_titles.txt prints out sherman's march a meditation on the possibility of romantic love in the south during an era of nuclear weapons proliferation, which is the longest movie name.
So after many tests I decided to write the dumbest program in world and just print out the longest movie. The online validator still doesn't accept it (marks both tests as "wrong"):
- Código:
#include <iostream>
#include <vector>
#include <string>
using namespace std;
vector<string> readfromstdin()
{
string bla = "";
vector<string> toreturn;
toreturn.reserve(8000);
while (cin)
{
getline(cin,bla);
toreturn.push_back(bla);
}
return toreturn;
}
int main()
{
vector<string> hola = readfromstdin();
string best = hola[0];
for (int i = 1; i < hola.size(); ++i)
{
if (best.size() < hola[i].size())
best = hola[i];
}
cout << best;
return 0;
}
Compiling this (just g++ main.cpp) and running ./a.out < all_titles.txt prints out sherman's march a meditation on the possibility of romantic love in the south during an era of nuclear weapons proliferation, which is the longest movie name.
mraggi- Mensajes : 18
Fecha de inscripción : 16/12/2015
Re: Online coding judge time validator
Dumbest Program
try printing the size of best (in your own computer) and best(or some other movie(not the last one)) and see what happens
try printing the size of best (in your own computer) and best(or some other movie(not the last one)) and see what happens
MSilverio- Mensajes : 5
Fecha de inscripción : 16/11/2015
Re: Online coding judge time validator
I'm programming in C++ too and I'm having the same issues
Test 1
WRONG
Test 2
WRONG
Test 1
WRONG
Test 2
WRONG
masp- Mensajes : 15
Fecha de inscripción : 07/01/2016
Re: Online coding judge time validator
Test 1 works off an hidden input to make sure you are not just printing an output string.
If you are getting wrong here you do not meet a simple case of overlapping.
If you get Test 2 wrong, then try the input on the APEX site below.
apex.oracle.com/pls/apex/f?p=MDC_MOVIE:1
It can tell you what is the last movie you are able to process.
If you are getting wrong here you do not meet a simple case of overlapping.
If you get Test 2 wrong, then try the input on the APEX site below.
apex.oracle.com/pls/apex/f?p=MDC_MOVIE:1
It can tell you what is the last movie you are able to process.
erikpeterson- Mensajes : 25
Fecha de inscripción : 06/01/2016
Re: Online coding judge time validator
Hi,
Nope, it doesn't work. The "trivial" solution I posted above should return with both "ACCEPTED", even if the "score" is incredibly low (since it just outputs the name of ONE movie).
But when I submit, both tests are marked as "wrong", like masp.
Also, would it be possible for us to delete our previous submissions (like in the original)? I now have like 20, just making tests. Minor issue, I guess.
BTW, msilverio, what do you mean? It prints out a number (the number of chars) and then the movie name...
Nope, it doesn't work. The "trivial" solution I posted above should return with both "ACCEPTED", even if the "score" is incredibly low (since it just outputs the name of ONE movie).
But when I submit, both tests are marked as "wrong", like masp.
Also, would it be possible for us to delete our previous submissions (like in the original)? I now have like 20, just making tests. Minor issue, I guess.
BTW, msilverio, what do you mean? It prints out a number (the number of chars) and then the movie name...
mraggi- Mensajes : 18
Fecha de inscripción : 16/12/2015
Re: Online coding judge time validator
Please keep topics on topic of the original item. If having an different items please start a new topic.
If you are getting wrong when you think you should not do please do the following.
1. Please also check your solution first on the APEX site as well.
It checks only the solution and not your code, and tells you how far it got.
Try to see why it stuck where it is.
2. Post a new topic for this error if a similar topic on why it is stuck does not exist.
3. The Admins can review your solution output easily from the APEX site.
Keep in mind that test #1 explicitely tests for just printed solutions.
If you are getting wrong when you think you should not do please do the following.
1. Please also check your solution first on the APEX site as well.
It checks only the solution and not your code, and tells you how far it got.
Try to see why it stuck where it is.
2. Post a new topic for this error if a similar topic on why it is stuck does not exist.
3. The Admins can review your solution output easily from the APEX site.
Keep in mind that test #1 explicitely tests for just printed solutions.
erikpeterson- Mensajes : 25
Fecha de inscripción : 06/01/2016
Re: Online coding judge time validator
After I added a small validation to my code I get the following:
Test 1
ACCEPT
Test 2
WRONG
The string is valid using the Apex validator
Test 1
ACCEPT
Test 2
WRONG
The string is valid using the Apex validator
masp- Mensajes : 15
Fecha de inscripción : 07/01/2016
Re: Online coding judge time validator
It is working now!
What is the meaning of the numbers in the leaderboard and what is the relation between them?
8269524
1049:51
What is the meaning of the numbers in the leaderboard and what is the relation between them?
8269524
1049:51
masp- Mensajes : 15
Fecha de inscripción : 07/01/2016
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.