mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你一个日期,请你设计一个算法来判断它是对应一周中的哪一天。</p>\n\n<p>输入为三个整数:<code>day</code>、<code>month</code> 和 <code>year</code>,分别表示日、月、年。</p>\n\n<p>您返回的结果必须是这几个值中的一个 <code>{"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}</code>。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong>day = 31, month = 8, year = 2019\n<strong>输出:</strong>"Saturday"\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong>day = 18, month = 7, year = 1999\n<strong>输出:</strong>"Sunday"\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong>day = 15, month = 8, year = 1993\n<strong>输出:</strong>"Sunday"\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li>给出的日期一定是在 <code>1971</code> 到 <code>2100</code> 年之间的有效日期。</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 111,
|
||||
"likes": 113,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -137,7 +137,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"35.3K\", \"totalSubmission\": \"56.4K\", \"totalAcceptedRaw\": 35299, \"totalSubmissionRaw\": 56365, \"acRate\": \"62.6%\"}",
|
||||
"stats": "{\"totalAccepted\": \"35.7K\", \"totalSubmission\": \"57K\", \"totalAcceptedRaw\": 35698, \"totalSubmissionRaw\": 56986, \"acRate\": \"62.6%\"}",
|
||||
"hints": [
|
||||
"Sum up the number of days for the years before the given year.",
|
||||
"Handle the case of a leap year.",
|
||||
|
Reference in New Issue
Block a user