Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

BeyondHeaven's blog

By BeyondHeaven, history, 3 years ago, In English

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.

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by BeyondHeaven (previous revision, new revision, compare).