Rosetta Problems

Union Find Tree

https://onlinejudge.u-aizu.ac.jp/problems/DSL_1_A