Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

c++ code run-time speed issue

Revision en2, by BeyondHeaven, 2023-06-07 18:44:40

I was practicing an old problem 757G and I met a huge speed difference among different c++ standard.

I received TLE (> 5000ms) when submitting with c++17 (64, win). But the exact same code do run fast (< 800ms) in the corresponding testcase when submitting with c++17 or c++20 (64, win).

I'm wondering why this could happen. I will be graceful if kindly everybody could point out the reason.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English BeyondHeaven 2023-06-07 18:44:40 0 (published)
en1 English BeyondHeaven 2023-06-07 18:43:52 658 Initial revision (saved to drafts)