Блог пользователя ricardogg

Автор ricardogg, история, 5 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +7
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

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

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.

»
5 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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