Why this solution is giving TLE?

Правка en1, от 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.com/contest/1899/submission/233163745 .

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский sg0310461 2023-11-19 15:54:50 232 Initial revision (published)