775. Saving Paper

When wrapping several cubes in paper, it is more efficient to wrap them all together than to wrap each one individually. For example, with 10 cubes of unit edge length, it would take 30 units of paper to wrap them in the arrangement shown below, but 60 units to wrap them separately.

Define to be the maximum amount of paper that can be saved by wrapping identical cubes in a compact arrangement, compared with wrapping them individually. We insist that the wrapping paper is in contact with the cubes at all points, without leaving a void.

With 10 cubes, the arrangement illustrated above is optimal, so . With 18 cubes, it can be shown that the optimal arrangement is as a , using 42 units of paper, whereas wrapping individually would use 108 units of paper; hence .

Define

You are given that , and .

Find . Give your answer modulo .

775. 省纸

用纸包裹一些正方体时,相较于单独用纸包裹它们,把正方体叠放在一起后用纸包裹它们更加省纸。如下图中有 10 个叠放在一起的单位正方体,包裹它们需要 30 单位面积的纸,而单独包裹则需 60 单位的纸。

为通过叠放 个单位正方体后用纸包裹它们最多可以省去的纸的面积。注意,包裹时,我们要求纸与正方体完全叠合,也就是说,不能存在一部分纸,使得其不与任何一个正方体接触。

有 10 个单位正方体时,上图的方案是最优的,显然 。有 18 个单位正方体时,最优的方式为将它们叠放为一个 的大长方体,这只需耗费 42 单位面积的纸;而单独包裹需要 108 单位面积的纸,故

已知

之值。


这个链接 回到源站。

这个链接 回到详细版题目目录。