Issue in the code, not able to rectify

Revision en1, by Herothenewdominator, 2025-08-31 22:38:36

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Herothenewdominator 2025-08-31 22:38:36 331 Initial revision (published)