I was trying to solve this easy problem: https://www.codechef.com/LTIME56/problems/L56GAME
So i made a solution and submitted it, getting a WA. Tried doing some things differently but still WA.
So i saw one of the solution, but it doing almost exactly what i was doing. So tried again still WA.
So finally out of frustration, i submitted the code that was earlier accepted and that gave WA.