mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-02 22:13:28 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>爱丽丝和鲍勃一起玩游戏,他们轮流行动。爱丽丝先手开局。</p>\n\n<p>最初,黑板上有一个数字 <code>n</code> 。在每个玩家的回合,玩家需要执行以下操作:</p>\n\n<ul>\n\t<li>选出任一 <code>x</code>,满足 <code>0 < x < n</code> 且 <code>n % x == 0</code> 。</li>\n\t<li>用 <code>n - x</code> 替换黑板上的数字 <code>n</code> 。</li>\n</ul>\n\n<p>如果玩家无法执行这些操作,就会输掉游戏。</p>\n\n<p><em>只有在爱丽丝在游戏中取得胜利时才返回 <code>true</code> 。假设两个玩家都以最佳状态参与游戏。</em></p>\n\n<p> </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> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= n <= 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."
|
||||
],
|
||||
|
Reference in New Issue
Block a user