why am i getting wrong ans/TLE? PLZZ HELP!!

Правка en2, от Me_iS_NooB, 2025-02-21 13:38:12

i was trying to solve this problem:- https://codeforces.me/contest/2064/problem/D

My solution :- https://codeforces.me/contest/2064/submission/307112876

I am getting wrong ans verdict in my solution even tho i think my logic is correct. Can anyone please find and explain what did i do wrong?

plzz help :,(

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Me_iS_NooB 2025-02-21 13:38:12 47
en1 Английский Me_iS_NooB 2025-02-21 13:37:38 315 Initial revision (published)