Problem : GCD and MST

Правка en1, от strange14, 2022-02-10 17:09:26

My solution involving prim's algorithm 145857604 gives wrong answer for this problem : 1513D - GCD and MST I understand the Kruskal's algorithm solution mentioned in the editorial, but cannot figure out why prims is failing here.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский strange14 2022-02-10 17:09:26 261 Initial revision (published)