https://www.acmicpc.net/problem/1019 플레티넘5를 풀어보자
https://www.acmicpc.net/problem/1717 union find 알고리즘