Why submission gets runtime error but runs fine on my system. (Question D of div2 992)

Правка en1, от Jus_here_to_learn_dude, 2024-12-09 15:46:14

I was solving question D of the latest div 2 contest. My idea is to pick the highest degree node at each step and set it first. I Know my first submission is a total mess, but it runs fine on my system, while it gives a runtime error when submitted. Can someone explain why this happens? Thanks! ps: I optimized the solution and got it accepted finally!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Jus_here_to_learn_dude 2024-12-09 15:46:14 564 Initial revision (published)