AtCoder Typical Contest 001: B - Union Find
B - Union Find
Union-Find木
AtCoder Typical Contest 001