Oracle MDC Coding challenge
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

Online coding judge time validator

+4
Admin
chess1424
casvel
MSilverio
8 participantes

Ir abajo

Online coding judge time validator Empty Online coding judge time validator

Mensaje por Admin Jue Dic 31, 2015 12:34 pm

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!

Admin
Admin

Mensajes : 26
Fecha de inscripción : 09/11/2015

https://oraclemdc.foroactivo.mx

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por MSilverio Jue Dic 31, 2015 1:28 pm

what is the size limit of the files?

MSilverio

Mensajes : 5
Fecha de inscripción : 16/11/2015

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por casvel Vie Ene 01, 2016 1:38 pm

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?

casvel

Mensajes : 2
Fecha de inscripción : 20/11/2015

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por Admin Sáb Ene 02, 2016 1:22 pm

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.

Admin
Admin

Mensajes : 26
Fecha de inscripción : 09/11/2015

https://oraclemdc.foroactivo.mx

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por chess1424 Lun Ene 04, 2016 4:06 am

Why I'm getting

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

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por Admin Lun Ene 04, 2016 12:12 pm

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.

Admin
Admin

Mensajes : 26
Fecha de inscripción : 09/11/2015

https://oraclemdc.foroactivo.mx

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por chess1424 Mar Ene 05, 2016 5:42 pm

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

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por Admin Mar Ene 05, 2016 6:55 pm

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.

Admin
Admin

Mensajes : 26
Fecha de inscripción : 09/11/2015

https://oraclemdc.foroactivo.mx

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por riscen Lun Ene 11, 2016 4:25 pm

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)


Ú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

Volver arriba Ir abajo

Online coding judge time validator Empty What is wrong with this?

Mensaje por mraggi Lun Ene 11, 2016 8:21 pm

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"):

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

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por MSilverio Mar Ene 12, 2016 7:50 pm

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 Wink

MSilverio

Mensajes : 5
Fecha de inscripción : 16/11/2015

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por masp Mar Ene 12, 2016 9:29 pm

I'm programming in C++ too and I'm having the same issues

Test 1
WRONG
Test 2
WRONG

masp

Mensajes : 15
Fecha de inscripción : 07/01/2016

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por erikpeterson Miér Ene 13, 2016 10:10 am

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.

erikpeterson

Mensajes : 25
Fecha de inscripción : 06/01/2016

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por mraggi Miér Ene 13, 2016 10:36 am

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. Smile

Also, would it be possible for us to delete our previous submissions (like in the original)? I now have like 20, just making tests.  Smile 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

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por erikpeterson Miér Ene 13, 2016 11:53 am

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.

erikpeterson

Mensajes : 25
Fecha de inscripción : 06/01/2016

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por masp Miér Ene 13, 2016 1:02 pm

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

masp

Mensajes : 15
Fecha de inscripción : 07/01/2016

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por masp Miér Ene 13, 2016 5:57 pm

It is working now!

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

Volver arriba Ir abajo

Online coding judge time validator Empty Re: Online coding judge time validator

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.