Same code gives a TLE in GNU C11, but gets accepted in C++ 17

Revision en1, by BrainNotFound, 2021-10-11 02:11:41

TLE submission (GNU C11)

AC submission

The execution time is 202ms on the C++ 17 compiler, while it's greater than 1000ms on GNU C11. I have never encountered this before. What is causing this TLE?

Tags tle, c/c++, bug

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English BrainNotFound 2021-10-11 02:11:41 384 Initial revision (published)