Why TLE?

Revision en1, by asimaries, 2022-05-31 23:04:51

https://codeforces.me/contest/1691/submission/159098417

Why does this solution fail on test 30 (TLE)? this is an O(n) solution and also this shouldn't have run more then O(1) time complexity.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English asimaries 2022-05-31 23:04:51 205 Initial revision (published)