C submission timeout, the same code accepted in all C++

Revision en1, by marian66, 2022-08-04 21:24:05

Hi there, I am new here and I am facing an interesting issue. I've submitted a solution in pure C (GNU C11) and got timeout. Exactly the same code when submitted as being of any C++ did well in around 200ms. Any idea? Here is a copy-paste from my submissions:

167020708 Aug/04/2022 20:12UTC+2 marian66 B — Permutation Chain GNU C++17 (64) Accepted 109 ms 0 KB 167020678 Aug/04/2022 20:12UTC+2 marian66 B — Permutation Chain GNU C++20 (64) Accepted 217 ms 0 KB 167020651 Aug/04/2022 20:12UTC+2 marian66 B — Permutation Chain GNU C++17 Accepted 140 ms 300 KB 167020629 Aug/04/2022 20:11UTC+2 marian66 B — Permutation Chain GNU C++14 Accepted 124 ms 300 KB 167020597 Aug/04/2022 20:11UTC+2 marian66 B — Permutation Chain GNU C11 Time limit exceeded on test 3 2000 ms 0 KB

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English marian66 2022-08-04 21:24:32 20
en1 English marian66 2022-08-04 21:24:05 863 Initial revision (published)