Weighted edges of a graph

Problem Name:
Weighted edges of a graph
Site:HackerEarth
Links:
Tags: