Rosetta Problems

合并集合

https://www.acwing.com/problem/content/838