Problem help ..
https://codeforces.me/contest/279/problem/B
may anyone tell me what is the problem with logic
https://codeforces.me/contest/279/submission/88946134
ICPC NA North Central and South Division