Problem 907
Stacking Cups
An infant’s toy consists of

The cups may be stacked in various combinations and orientations to form towers. The cups are shaped such that the following means of stacking are possible:
- Nesting:
may sit snugly inside . - Base-to-base:
or may sit, right-way-up, on top of an up-side-down , with their bottoms fitting together snugly. - Rim-to-rim:
or may sit, up-side-down, on top of a right-way-up , with their tops fitting together snugly.
Define
You are given
Find
叠杯子
某种婴儿玩具包含

这些杯子可以用多种方式进行堆叠。具体来说,杯子的形状被设计为允许采用如下的堆叠方式:
- 嵌套:
可以紧密地嵌套在 里面。 - 底对底:正放的
或 可以放在倒置的 上面,并使底部紧密贴合。 - 顶对顶:倒置的
或 可以放在正放的 上面,并使顶部紧密贴合。
定义
已知
求
Gitalking ...