[UVA][LIS] 10051 - Tower of Cubes
Problem A: Tower of Cubes
In this problem you are given N colorful cubes each having a distinct
weight. Each face of a cube is colored with one color. Your job is to build a
tower using the cubes you have subject to the following restrictions:
Never pu...