Can anyone plese help me out what is the issue in my code, just couldnt understand why is it giving wrong answer for this, logic seems to be correct I guess
My submission https://mirror.codeforces.com/contest/2116/submission/336427692
The problem https://mirror.codeforces.com/contest/2116/problem/B



