The unexpected TLE

Правка en1, от Alireza_OLY, 2024-03-04 00:42:43

Hello guys I am stuck in solving the problem of "E-singer's tour". I am solving it using O(n) but I have no idea why it gets me a TLE error. Even though getting the input is O(n) and my code is O(n). I have no idea how to solve this problem. I even don't find any other way. my submission: https://mirror.codeforces.com/contest/1618/submission/249522519

Теги time limit error, div3, time limit exceeded

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Alireza_OLY 2024-03-04 00:56:03 112
en1 Английский Alireza_OLY 2024-03-04 00:42:43 374 Initial revision (published)