CodeForces 10 C.Lucky Tree(并查集)

NoSuchKey