Rosetta Problems

Codeforces Educational 3E- Minimum spanning tree for each edge

https://oj.vnoi.info/problem/cf_edu3e