Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

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://codeforces.me/contest/2116/submission/336427692

The problem https://codeforces.me/contest/2116/problem/B

History

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