Codeforces time limit exceeded problem?

Revision en1, by litvinas, 2024-02-29 18:45:02

Hello Codeforces, I have been working on the problem 1176E - Cover it! and submitted the following code: 248930264 (I submitted many but I felt this one was the closest to go through) My time complexity was the standard O(N + M) N vertices M edges but couldnt get the code through however I found a similar code 248919921 which got Accepted with the same time complexity and simmilar constant factors What is the difference between the codes / why did my code tle?

thank you in advance litvinas

Tags time limit, time limit exceeded, compiler

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English litvinas 2024-02-29 18:45:02 569 Initial revision (published)