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:
Base-to-base:
Rim-to-rim:
For the purposes of this problem, it is not permitted to stack both
Define
Find
某款婴儿叠叠杯玩具由
我们可以任意组合杯子,把它们按不同的朝向堆叠在一起,形成多种杯塔。得益于这些杯子的特殊形状,你可以按如下规则堆叠杯子:
嵌套:
杯底对杯底:正放的
杯沿对杯沿:倒置的
即使理论上如下叠放是可行的,但在本题中,你 不允许 将
记
求
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。