mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 21:46:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>小区便利店正在促销,用 <code>numExchange</code> 个空酒瓶可以兑换一瓶新酒。你购入了 <code>numBottles</code> 瓶酒。</p>\n\n<p>如果喝掉了酒瓶中的酒,那么酒瓶就会变成空的。</p>\n\n<p>请你计算 <strong>最多</strong> 能喝到多少瓶酒。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<p><strong><img alt=\"\" src=\"https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/07/19/sample_1_1875.png\" style=\"height: 240px; width: 480px;\"></strong></p>\n\n<pre><strong>输入:</strong>numBottles = 9, numExchange = 3\n<strong>输出:</strong>13\n<strong>解释:</strong>你可以用 <code>3</code> 个空酒瓶兑换 1 瓶酒。\n所以最多能喝到 9 + 3 + 1 = 13 瓶酒。\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<p><img alt=\"\" src=\"https://assets.leetcode-cn.com/aliyun-lc-upload/uploads/2020/07/19/sample_2_1875.png\" style=\"height: 240px; width: 790px;\"></p>\n\n<pre><strong>输入:</strong>numBottles = 15, numExchange = 4\n<strong>输出:</strong>19\n<strong>解释:</strong>你可以用 <code>4</code> 个空酒瓶兑换 1 瓶酒。\n所以最多能喝到 15 + 3 + 1 = 19 瓶酒。\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong>numBottles = 5, numExchange = 5\n<strong>输出:</strong>6\n</pre>\n\n<p><strong>示例 4:</strong></p>\n\n<pre><strong>输入:</strong>numBottles = 2, numExchange = 3\n<strong>输出:</strong>2\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= numBottles <= 100</code></li>\n\t<li><code>2 <= numExchange <= 100</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 135,
|
||||
"likes": 137,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"55.2K\", \"totalSubmission\": \"78.5K\", \"totalAcceptedRaw\": 55170, \"totalSubmissionRaw\": 78505, \"acRate\": \"70.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"55.7K\", \"totalSubmission\": \"79.3K\", \"totalAcceptedRaw\": 55731, \"totalSubmissionRaw\": 79328, \"acRate\": \"70.3%\"}",
|
||||
"hints": [
|
||||
"Simulate the process until there are not enough empty bottles for even one full bottle of water."
|
||||
],
|
||||
|
Reference in New Issue
Block a user