![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
4.5 开动脑筋智慧搜索 剪枝
woniupengpeng
这个作者很懒,什么都没留下…
展开
-
POJ 1011 Sticks 笔记
描述乔治拿着相同长度的棍子,随机切割,直到所有部分变为最多50个单位长。 现在他想把棍子恢复到原来的状态,但他忘记了他原来有多少根棍子,以及它们最初的长度。请帮助他,并设计一个程序,计算这些棒的最小可能的原始长度。 以单位表示的所有长度都是大于零的整数。输入输入包含2行的块。 第一行包含切割后的棒部分数量,最多有64根棒。 第二行包含由空格分隔的那些部分的长度。文件原创 2016-12-25 19:13:56 · 242 阅读 · 0 评论 -
POJ 3134 Power Calculus 笔记
<span title="Description">描述<span title="Starting with x and repeatedly multiplying by x, we can compute x31 with thirty multiplications:">从x开始并重复乘以x,我们可以计算x31与三十次乘法:<span title="x2原创 2016-12-25 19:21:00 · 255 阅读 · 0 评论 -
POJ 2046 Gap 笔记
<span title="Description">描述<span title="Let's play a card game called Gap.">让我们玩一个名为Gap的纸牌游戏。您有28张卡标有两位数字。<span title="The first digit (from 1 to 4) represents the suit of the card, and the原创 2016-12-25 19:17:19 · 378 阅读 · 0 评论