cooling pies.

http://www.codechef.com/viewsolution/4858241

above is the link to my solution. i dont know why it gives wrong answer. when i run for both the test cases ans is correct. plz help

your j value is not incrementing in inner loop.
insted of j++ you have given i++.

3 Likes