Why this solution is giving TLE?

Revision en1, by sg0310461, 2023-11-19 15:54:50

Can anyone tell me why my solution is giving TLE in Codeforces Round 909 (Div. 3) problem D despite being O(n)? My solution for problem D is https://codeforces.net/contest/1899/submission/233163745 .

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sg0310461 2023-11-19 15:54:50 232 Initial revision (published)