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

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

So I got this RTE: Test: #5, time: 0 ms., memory: 2396 KB, exit code: -1073741819, checker exit code: 0, verdict: RUNTIME_ERROR

But it runs fine on my computer, what's wrong?

submission #: 17999254 question link: http://codeforces.com/contest/675/problem/C

Thanks a lot to anyone that helps

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

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

Try to use Debugger, i think that somewhere your program calls defunct element of array like num[-1] or num[10000000]

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

This negative exit code is Runtime Error.
You was accessing num[x] where x far exceeds your array size. I changed num to map so it's now runtime error #7 instead of #5. You do the rest of debugging.
18003703