Блог пользователя Zhora_.004

Автор Zhora_.004, история, 3 года назад, По-английски

Hey CF!

Today I submitted the exact same code in C++ 20 and C++ 17. In C++ 17 it passed but TLE in C++20.

132652146 C++ 20 (TLE).

132652139 C++ 17 (ACCEPTED).

Does it mean that C++ 17 is faster than C++ 20?

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

»
3 года назад, # |
Rev. 2   Проголосовать: нравится -7 Проголосовать: не нравится

I think it has more to do with being 64 bits than anything. Submitting with 64bits in c++17 gives 998ms: https://codeforces.com/contest/420/submission/132652146.

Also, c++20 is faster sometimes and slower in other times, its not universally better or worse.