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??