Issue in the code, not able to rectify

Правка en1, от 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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Herothenewdominator 2025-08-31 22:38:36 331 Initial revision (published)