I am unable to find the bug in this code.Please help me understand it.Thanks.
same confusion here… It is showing Runtime error but running fine on my system. Cause of runtime error is amount of memory used or something else? http://www.codechef.com/viewsolution/3916450