Hi, I solved the Stone Game problem with this solution: http://www.codechef.com/viewsolution/1101333
I’m trying to solve it getting input with gets.
The sample input works well, but the solution doesn’t pass codechef test.
This is one of the solutions that don’t work: http://www.codechef.com/viewsolution/1101396
Could you help me understanding why?