Trying to figure out why my solution gave TLE.

Правка en2, от PaneerMakhani, 2024-06-28 08:53:07

Hello Codeforces, I participated in contest and i wrote a solution which seems like O(nlogn) to me but I still got TLE despite of constraints for N being 10^6. Can anyone Help me figure out why I got TLE and how can I fix it. Submission Link :

Submission

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский PaneerMakhani 2024-06-28 08:53:07 8
en1 Английский PaneerMakhani 2024-06-28 08:51:12 415 Initial revision (published)