Please read the new rule regarding the restriction on the use of AI tools. ×

DisconnectedGraph's blog

By DisconnectedGraph, history, 2 months ago, In English

When I'm solving 1303G, I submitted with C++17 and C++20(same code).

In C++17, the code passes test 2 easily (109ms).

However, the code gets TLE in C++20 (time limit is 6s).

I'm confused, is there an undefined behavior in my code or is the C++20 compiler bugged?

  • Vote: I like it
  • -5
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
2 months ago, # |
  Vote: I like it +38 Vote: I do not like it

unreadable code