Getting WA in CSTREET spoj. Minimum spanning tree probelm

This post was flagged by the community and is temporarily hidden.