CodeForces 1023F Mobile Phone Network(并查集 + 最小生成树)

NoSuchKey