TLE on Hello 2025 B

Revision en1, by JigolKa, 2025-01-05 21:53:15

Hello,

I don't understand why my solution got a TLE for problem B. Here is the solution I came up with during the contest: 299645061. I'm quite sure the complexity is O(nlogn) but maybe I'm wrong. Here is another solution that doesn't use del: 299814673 even though if I remember correctly the complexity of del is O(1).

Does anyone have similar results?

Tags contest, complexity, bug

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English JigolKa 2025-01-05 21:53:15 505 Initial revision (published)