1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-02 22:13:28 +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>爱丽丝和鲍勃一起玩游戏,他们轮流行动。爱丽丝先手开局。</p>\n\n<p>最初,黑板上有一个数字&nbsp;<code>n</code>&nbsp;。在每个玩家的回合,玩家需要执行以下操作:</p>\n\n<ul>\n\t<li>选出任一&nbsp;<code>x</code>,满足&nbsp;<code>0 &lt; x &lt; n</code>&nbsp;且&nbsp;<code>n % x == 0</code>&nbsp;。</li>\n\t<li>用 <code>n - x</code>&nbsp;替换黑板上的数字&nbsp;<code>n</code> 。</li>\n</ul>\n\n<p>如果玩家无法执行这些操作,就会输掉游戏。</p>\n\n<p><em>只有在爱丽丝在游戏中取得胜利时才返回&nbsp;<code>true</code>&nbsp;。假设两个玩家都以最佳状态参与游戏。</em></p>\n\n<p>&nbsp;</p>\n\n<ol>\n</ol>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 2\n<strong>输出:</strong>true\n<strong>解释:</strong>爱丽丝选择 1鲍勃无法进行操作。\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre>\n<strong>输入:</strong>n = 3\n<strong>输出:</strong>false\n<strong>解释:</strong>爱丽丝选择 1鲍勃也选择 1然后爱丽丝无法进行操作。\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= n &lt;= 1000</code></li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 346,
"likes": 347,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"82K\", \"totalSubmission\": \"115.9K\", \"totalAcceptedRaw\": 82043, \"totalSubmissionRaw\": 115916, \"acRate\": \"70.8%\"}",
"stats": "{\"totalAccepted\": \"82.2K\", \"totalSubmission\": \"116.1K\", \"totalAcceptedRaw\": 82156, \"totalSubmissionRaw\": 116069, \"acRate\": \"70.8%\"}",
"hints": [
"If the current number is even, we can always subtract a 1 to make it odd. If the current number is odd, we must subtract an odd number to make it even."
],