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

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

Submission : https://mirror.codeforces.com/contest/1327/submission/74093951

Can anyone explain what is going wrong in my code that is giving me runtime error. Also, what exactly does the error code specify, as in, about the nature of the runtime error. Whether it is an array out of bounds or something else

Any help would be appreciated

Thanks :)

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

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

Auto comment: topic has been updated by RedDragon (previous revision, new revision, compare).

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

I just figured out the error. Test case 4, where it is giving an error, I have dynamically allocated a double dimensional array of a huge size, more than the memory limit permitted by the question. On static allocation of the array of same max size, I am getting compilation error, saying file can't be compiled as the array size is too large. Guess I'll have to use a different logic to solve.

Thanks for the help buddy! :)