北京大学OpenJudge 1988 Cube Stacking (并查集)

NoSuchKey