Блог пользователя DisconnectedGraph

Автор DisconnectedGraph, история, 4 часа назад, По-английски

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?

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
4 часа назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
71 минуту назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

unreadable code