Can anyone tell me why my solution is giving Runtime Error.
I am unable to figure it out.
Here’s my solution - www.codechef.com/viewsolution/4359235
Firstly i thought memory allocation could be the problem but then i got through this AC solution www.codechef.com/viewsolution/4359893 by some user which has similar kind of memory allocation and got accepted. Plz help me to figure out the problem.