TLE vs RTE in C++20

Правка en1, от variance, 2022-03-31 20:00:46

Consider submissions 151556965 and 151558044. They are the same, except that the first is in C++20 and the second is C++17. The solutions fail because the bounds for the problem are N <= 2e5, but I used MAXN = 20005.

Thus we get RTE on the C++17 submission (as expected) due to accessing memory out-of-bounds. But why does the first one TLE?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский variance 2022-03-31 20:01:45 82
en1 Английский variance 2022-03-31 20:00:46 483 Initial revision (published)