1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/砍竹子 I [jian-sheng-zi-lcof].html

18 lines
600 B
HTML
Raw Normal View History

2023-12-09 18:53:53 +08:00
<p>现需要将一根长为正整数 <code>bamboo_len</code> 的竹子砍为若干段,每段长度均为正整数。请返回每段竹子长度的最大乘积是多少。</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre>
<strong>输入: </strong>bamboo_len<strong> </strong>=<strong> </strong>12
<strong>输出: </strong>81
</pre>
<strong>提示:</strong>
<ul>
<li><code>2 &lt;= bamboo_len&nbsp;&lt;= 58</code></li>
</ul>
<p>注意:本题与主站 343 题相同:<a href="https://leetcode-cn.com/problems/integer-break/">https://leetcode-cn.com/problems/integer-break/</a></p>