RedDragon's blog

By RedDragon, history, 5 years ago, In English

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 :)

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

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

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! :)