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

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

I have been solving this problem https://codeforces.me/contest/339/submission/129086329 but while on test case 7(a very long test case) , I get this error saying 'the solution is executed with error out of bounds or other memory error' on line 18'. Codeforces is new for me, so could you tell me what is wrong with my code and how should I fix it? It would mean a lot.

Thanks

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

»
5 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

You have never assigned value to A so its length equals to zero. That's why you have out of bounds error,