Why does my solution get TLE on g++17 but passes on g++23?
Разница между en1 и en2, 20 символ(ов) изменены
Hey everyone,↵
-------------↵
↵
I ran into something weird. I have a solution that↵
↵
### TLE on g++17 :↵
[submission:367366
517805]↵
↵
### ↵
Accepted on g++23 :↵
[submission:367366
805]517]↵
↵
↵
Honestly, it feels a bit unfair that the exact same solution works on one compiler and not the other. I only found out about this by luck, I could’ve wasted so much time trying to come up with another solution, while mine is already correct.↵
↵
Has anyone else experienced this? Any idea why the compiler version makes such a difference?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский M4357R0 2026-03-19 18:01:17 20
en1 Английский M4357R0 2026-03-19 17:56:56 578 Initial revision (published)