poj 1988 Cube Stacking【带权并查集】

NoSuchKey