B - Rikka with Graph HDU - 5631 (并查集+思维)

NoSuchKey