ricardogg's blog

By ricardogg, history, 6 years ago, In English

I'm not sure if we are allowed to discuss about other judges on codeforces, however solving problems from IOI is not available on codeforces.

I was trying to solve problem Holiday from IOI 2014. I know two judges that have this problem available — Oj.uz and Wcipeg. Namely my solution works on Wcipeg and gets accepted, while it fails on Oj.uz due to error message: Execution killed with signal 9 (could be triggered by violating memory limits). I don't know whether my solution is correct or not, also if it is correct why it doesn't work on Oj.uz

I have given my both codes below, since the way those two judges work is different, wcipeg gives us the variables on standard input, while on oj.uz we need to code function that will solve the problem.

Wcipeg code
Oj.uz code

If you had similar experiences, please share them, also I would like to know why my solutions fails on oj.uz.

  • Vote: I like it
  • +7
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it +10 Vote: I do not like it

You can try to submit it here and see what verdict it gives

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Execution killed with signal 9 is RTE. Usually (99%+) it means that your code just got lucky on wcipeg but not on oj.uz, due to undefined behaviors.

»
6 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Your code uses ~100MB on test #1 of subtask 2.