Rosetta Problems

だいたい最小全域木

https://atcoder.jp/contests/arc021/tasks/arc021_4