Strange complier behaviour in round 978 (div-2) E1

Правка en1, от Harsh_kunwar, 2024-10-14 10:48:44

In the recent Div2 contest Codeforces Round 978 (Div. 2), I attempted solving E1. 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 ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Harsh_kunwar 2024-10-14 10:55:28 24
en1 Английский Harsh_kunwar 2024-10-14 10:48:44 639 Initial revision (published)