1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-22 21:46:46 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 16:56:27 +08:00
parent e730aa6794
commit ad15da05aa
2517 changed files with 7358 additions and 7332 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>给定一个正整数&nbsp;<code>n</code>&nbsp;,将其拆分为 <code>k</code> 个 <strong>正整数</strong> 的和(&nbsp;<code>k &gt;= 2</code>&nbsp;),并使这些整数的乘积最大化。</p>\n\n<p>返回 <em>你可以获得的最大乘积</em>&nbsp;。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入: </strong>n = 2\n<strong>输出: </strong>1\n<strong>解释: </strong>2 = 1 + 1, 1 × 1 = 1。</pre>\n\n<p><strong>示例&nbsp;2:</strong></p>\n\n<pre>\n<strong>输入: </strong>n = 10\n<strong>输出: </strong>36\n<strong>解释: </strong>10 = 3 + 3 + 4, 3 ×&nbsp;3 ×&nbsp;4 = 36。</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>2 &lt;= n &lt;= 58</code></li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 762,
"likes": 765,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -143,7 +143,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"148.6K\", \"totalSubmission\": \"241.6K\", \"totalAcceptedRaw\": 148622, \"totalSubmissionRaw\": 241638, \"acRate\": \"61.5%\"}",
"stats": "{\"totalAccepted\": \"149.4K\", \"totalSubmission\": \"242.9K\", \"totalAcceptedRaw\": 149442, \"totalSubmissionRaw\": 242928, \"acRate\": \"61.5%\"}",
"hints": [
"There is a simple O(n) solution to this problem.",
"You may check the breaking results of <i>n</i> ranging from 7 to 10 to discover the regularities."