mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 05:26:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>森林中有未知数量的兔子。提问其中若干只兔子<strong> \"还有多少只兔子与你(指被提问的兔子)颜色相同?\"</strong> ,将答案收集到一个整数数组 <code>answers</code> 中,其中 <code>answers[i]</code> 是第 <code>i</code> 只兔子的回答。</p>\n\n<p>给你数组 <code>answers</code> ,返回森林中兔子的最少数量。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>answers = [1,1,2]\n<strong>输出:</strong>5\n<strong>解释:</strong>\n两只回答了 \"1\" 的兔子可能有相同的颜色,设为红色。 \n之后回答了 \"2\" 的兔子不会是红色,否则他们的回答会相互矛盾。\n设回答了 \"2\" 的兔子为蓝色。 \n此外,森林中还应有另外 2 只蓝色兔子的回答没有包含在数组中。 \n因此森林中兔子的最少数量是 5 只:3 只回答的和 2 只没有回答的。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>answers = [10,10,10]\n<strong>输出:</strong>11\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= answers.length <= 1000</code></li>\n\t<li><code>0 <= answers[i] < 1000</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 214,
|
||||
"likes": 216,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"46.6K\", \"totalSubmission\": \"76.8K\", \"totalAcceptedRaw\": 46650, \"totalSubmissionRaw\": 76753, \"acRate\": \"60.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"47.5K\", \"totalSubmission\": \"78.5K\", \"totalAcceptedRaw\": 47520, \"totalSubmissionRaw\": 78458, \"acRate\": \"60.6%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
||||
Reference in New Issue
Block a user