Weird codeforces behavior

Правка en7, от Pumkinhead_Me, 2025-10-12 17:13:06

Hello! I have recently been solving a task, and I have encountered some weird behavior on codeforces. I have submitted 2 solutions: https://mirror.codeforces.com/contest/1304/submission/343285292 https://mirror.codeforces.com/contest/1304/submission/343285436

One of them received the "Idleness limit exceeded on test 1" verdict, while the other got "Accepted". However, the only difference between these 2 submissions is the following line:

int elemCount = lcaList.size();

int elemCount = 2*n-1;

Can anyone explain to me what is causing this behavior?

Edit: The ILE seems to only happen on G++ 20, not G++ 17 or 23. Compiler bug?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en8 Английский Pumkinhead_Me 2025-10-12 17:22:49 16
en7 Английский Pumkinhead_Me 2025-10-12 17:13:06 81
en6 Английский Pumkinhead_Me 2025-10-12 15:33:21 0 (published)
en5 Английский Pumkinhead_Me 2025-10-12 15:32:53 3 Tiny change: 't.size();` vs\n\n`int e' -> 't.size();`\n\n`int e'
en4 Английский Pumkinhead_Me 2025-10-12 15:32:39 9
en3 Английский Pumkinhead_Me 2025-10-12 15:32:17 10
en2 Английский Pumkinhead_Me 2025-10-12 15:32:03 24
en1 Английский Pumkinhead_Me 2025-10-12 15:30:42 572 Initial revision (saved to drafts)