Strange complier behaviour in round 978 (Div. 2) E1

Revision en2, by Harsh_kunwar, 2024-10-14 10:55:28

In the recent Div2 contest Codeforces Round 978 (Div. 2), I attempted solving E1 2022E1 - Billetes MX (Easy Version). Upon submitting, the judge returned a TLE on pretest 30 285739225. This result was unexpected since my solution had a time complexity of O(n*30). After the contest ended, I revisited my code and made a small change by replacing push_back with emplace_back. I then resubmitted the code, and surprisingly, this time it was accepted 285743685. I am unsure why this happened—whether the time limit was too strict or if this was not the intended solution. Can someone please address my issue ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Harsh_kunwar 2024-10-14 10:55:28 24
en1 English Harsh_kunwar 2024-10-14 10:48:44 639 Initial revision (published)