can anyone explain this why https://codeforces.net/contest/18/submission/172558206 this solution gets accepted while https://codeforces.net/contest/18/submission/172557506 this is giving wrong answer for problem https://codeforces.net/contest/18/problem/C
Isn't both the same thing??
Oh, finally.
The problem is in this line:
I think this test case will help you understand:
oh...great observation... thanks, man!! I will remember this in the future...