mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "给定 N 个无限容量且初始均空的水缸,每个水缸配有一个水桶用来打水,第 `i` 个水缸配备的水桶容量记作 `bucket[i]`。小扣有以下两种操作:\n- 升级水桶:选择任意一个水桶,使其容量增加为 `bucket[i]+1`\n- 蓄水:将全部水桶接满水,倒入各自对应的水缸\n\n每个水缸对应最低蓄水量记作 `vat[i]`,返回小扣至少需要多少次操作可以完成所有水缸蓄水要求。\n\n注意:实际蓄水量 **达到或超过** 最低蓄水量,即完成蓄水要求。\n\n**示例 1:**\n>输入:`bucket = [1,3], vat = [6,8]`\n>\n>输出:`4`\n>\n>解释:\n>第 1 次操作升级 bucket[0];\n>第 2 ~ 4 次操作均选择蓄水,即可完成蓄水要求。\n\n\n\n\n**示例 2:**\n>输入:`bucket = [9,0,1], vat = [0,2,2]`\n>\n>输出:`3`\n>\n>解释:\n>第 1 次操作均选择升级 bucket[1]\n>第 2~3 次操作选择蓄水,即可完成蓄水要求。\n\n**提示:**\n- `1 <= bucket.length == vat.length <= 100`\n- `0 <= bucket[i], vat[i] <= 10^4`\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 49,
|
||||
"likes": 57,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"6K\", \"totalSubmission\": \"25.1K\", \"totalAcceptedRaw\": 6028, \"totalSubmissionRaw\": 25130, \"acRate\": \"24.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"6.5K\", \"totalSubmission\": \"26.4K\", \"totalAcceptedRaw\": 6512, \"totalSubmissionRaw\": 26426, \"acRate\": \"24.6%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user