[Lead game]Wrong answer

I tried this program on my compiler by taking many test cases and it showed correct answer but I don’t know why is it getting wrong answer here…??
Please help.
Here is the link to the solution -> http://www.codechef.com/viewsolution/3115810

Please refer to this

You have made the same mistake as him.

1 Like