D. Lunar New Year and a Wander CodeForces - 1106D(类prim+类bfs)

NoSuchKey