TLE when using C++11 and C++14 but AC using C++20

Правка en1, от pgiaminh8368, 2022-01-28 18:48:56

So I was doing this problem: https://codeforces.net/contest/1490/problem/F. And I got TLE when I use C++11: https://codeforces.net/contest/1490/submission/144339905 . and C++14: https://codeforces.net/contest/1490/submission/144338420 . but AC when using C++20: https://codeforces.net/contest/1490/submission/144339955 . Can anyone tell me why this is happening?

Теги c++, tle, unordered_map, map, hashmap

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский pgiaminh8368 2022-01-28 18:49:26 0 (published)
en1 Английский pgiaminh8368 2022-01-28 18:48:56 412 Initial revision (saved to drafts)