Rosetta Problems

Union Find

https://atcoder.jp/contests/atc001/tasks/unionfind_a