### Kavi1234's blog

By Kavi1234, history, 5 months ago, ,

Can anyone please explain why this submission 54494363 got Runtime error_ ( used long long int)_ while this submission 54494589 was Accepted.__(used int)__.

• -3

 » 5 months ago, # |   +5 It's a stack-overflow error.And because of the fact that sizeof(long long int) == 2 * sizeof(int)), int was enough to solve the problem.BTW, if you declared the arrays globally, you would take an MLE verdict.
•  » » 5 months ago, # ^ |   +6 Thanks for the help. Btw,Changed the local arrays to global and it worked too. 54515438. Found this article :https://stackoverflow.com/questions/22945647/why-does-a-large-local-array-crash-my-program-but-a-global-one-doesnt
•  » » » 5 months ago, # ^ |   +1 Great :D. I thought that the ML of this problem was 256 MB, now I know it's 512 MB.Thanks for the link.
 » 5 months ago, # |   -6 Because there is difference between long long int and int .