Need Help in SPOJ Problem

Revision en1, by _invincible_, 2020-06-30 12:35:44

Problem Link

My solution

Need Help..I am getting wrong answer on test 15 and can't figure out my mistake. Any help would be appreciated.

Thanks in advance.

Tags #graph theory, spanning tree, kruskal, #bfs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English _invincible_ 2020-07-23 16:35:33 23
en3 English _invincible_ 2020-07-23 16:34:51 2113
en2 English _invincible_ 2020-07-23 16:31:44 2523
en1 English _invincible_ 2020-06-30 12:35:44 261 Initial revision (published)