Why does a linear time solution get rejected for "Time limit exceeded"?

Revision en1, by KP56, 2022-09-01 14:21:20

In the previous contest I submitted a solution which got accepted but right now it says "Time limit exceeded". When I try to resubmit it, it keeps failing test 5. Any ideas why it's not efficient enough?

https://codeforces.com/contest/1722/submission/170472282

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English KP56 2022-09-01 14:21:20 334 Initial revision (published)