2003' ACM/ICPCѵϰ 5

D: Cube