1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-22 05:26:46 +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>给你一个整数&nbsp;<code>n</code>&nbsp;,请你返回所有 0 到 1 之间(不包括 0 和 1满足分母小于等于&nbsp;&nbsp;<code>n</code>&nbsp;的 <strong>最简&nbsp;</strong>分数&nbsp;。分数可以以 <strong>任意&nbsp;</strong>顺序返回。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre><strong>输入:</strong>n = 2\n<strong>输出:</strong>[&quot;1/2&quot;]\n<strong>解释:</strong>&quot;1/2&quot; 是唯一一个分母小于等于 2 的最简分数。</pre>\n\n<p><strong>示例 2</strong></p>\n\n<pre><strong>输入:</strong>n = 3\n<strong>输出:</strong>[&quot;1/2&quot;,&quot;1/3&quot;,&quot;2/3&quot;]\n</pre>\n\n<p><strong>示例 3</strong></p>\n\n<pre><strong>输入:</strong>n = 4\n<strong>输出:</strong>[&quot;1/2&quot;,&quot;1/3&quot;,&quot;1/4&quot;,&quot;2/3&quot;,&quot;3/4&quot;]\n<strong>解释:</strong>&quot;2/4&quot; 不是最简分数,因为它可以化简为 &quot;1/2&quot; 。</pre>\n\n<p><strong>示例 4</strong></p>\n\n<pre><strong>输入:</strong>n = 1\n<strong>输出:</strong>[]\n</pre>\n\n<p>&nbsp;</p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 &lt;= n &lt;= 100</code></li>\n</ul>\n",
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 83,
"likes": 84,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"39.3K\", \"totalSubmission\": \"57.9K\", \"totalAcceptedRaw\": 39271, \"totalSubmissionRaw\": 57934, \"acRate\": \"67.8%\"}",
"stats": "{\"totalAccepted\": \"39.5K\", \"totalSubmission\": \"58.2K\", \"totalAcceptedRaw\": 39463, \"totalSubmissionRaw\": 58198, \"acRate\": \"67.8%\"}",
"hints": [
"A fraction is fully simplified if there is no integer that divides cleanly into the numerator and denominator.",
"In other words the greatest common divisor of the numerator and the denominator of a simplified fraction is 1."