TLE when using C++11 and C++14 but AC using C++20
Difference between en1 and en2, changed 0 character(s)
So I was doing this problem: https://codeforces.com/contest/1490/problem/F. And I got TLE when I use C++11: https://codeforces.com/contest/1490/submission/144339905 . and C++14: https://codeforces.com/contest/1490/submission/144338420 . but AC when using C++20: https://codeforces.com/contest/1490/submission/144339955 .↵
Can anyone tell me why this is happening?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English pgiaminh8368 2022-01-28 18:49:26 0 (published)
en1 English pgiaminh8368 2022-01-28 18:48:56 412 Initial revision (saved to drafts)