Minimum spanning tree for each edge

Problem Name:
Minimum spanning tree for each edge
Site:CodeForces
Links:
Tags:
Problem setters: