1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-12-14 22:52:36 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>Hercy 想要为购买第一辆车存钱。他 <strong>每天</strong> 都往力扣银行里存钱。</p>\n\n<p>最开始,他在周一的时候存入 <code>1</code> 块钱。从周二到周日,他每天都比前一天多存入 <code>1</code> 块钱。在接下来每一个周一,他都会比 <strong>前一个周一</strong> 多存入 <code>1</code> 块钱。<span style=\"\"> </span></p>\n\n<p>给你 <code>n</code> ,请你返回在第 <code>n</code> 天结束的时候他在力扣银行总共存了多少块钱。</p>\n\n<p> </p>\n\n<p><strong>示例 1</strong></p>\n\n<pre><b>输入:</b>n = 4\n<b>输出:</b>10\n<b>解释:</b>第 4 天后,总额为 1 + 2 + 3 + 4 = 10 。\n</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre><b>输入:</b>n = 10\n<b>输出:</b>37\n<b>解释:</b>第 10 天后,总额为 (1 + 2 + 3 + 4 + 5 + 6 + 7) + (2 + 3 + 4) = 37 。注意到第二个星期一Hercy 存入 2 块钱。\n</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre><b>输入:</b>n = 20\n<b>输出:</b>96\n<b>解释:</b>第 20 天后,总额为 (1 + 2 + 3 + 4 + 5 + 6 + 7) + (2 + 3 + 4 + 5 + 6 + 7 + 8) + (3 + 4 + 5 + 6 + 7 + 8) = 96 。\n</pre>\n\n<p> </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": 70,
"likes": 71,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -137,7 +137,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"37.3K\", \"totalSubmission\": \"53K\", \"totalAcceptedRaw\": 37295, \"totalSubmissionRaw\": 53027, \"acRate\": \"70.3%\"}",
"stats": "{\"totalAccepted\": \"37.7K\", \"totalSubmission\": \"53.6K\", \"totalAcceptedRaw\": 37674, \"totalSubmissionRaw\": 53620, \"acRate\": \"70.3%\"}",
"hints": [
"Simulate the process by keeping track of how much money John is putting in and which day of the week it is, and use this information to deduce how much money John will put in the next day."
],