Codeforces Round 31 C. Bertown Subway(并查集)

NoSuchKey