mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 18:31:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>实现 <a href=\"https://www.cplusplus.com/reference/valarray/pow/\">pow(<em>x</em>, <em>n</em>)</a> ,即计算 x 的 n 次幂函数(即,x<sup>n</sup>)。不得使用库函数,同时不需要考虑大数问题。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n<strong>输入:</strong>x = 2.00000, n = 10\n<strong>输出:</strong>1024.00000\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>x = 2.10000, n = 3\n<strong>输出:</strong>9.26100</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong>x = 2.00000, n = -2\n<strong>输出:</strong>0.25000\n<strong>解释:</strong>2<sup>-2</sup> = 1/2<sup>2</sup> = 1/4 = 0.25</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>-100.0 < x < 100.0</code></li>\n\t<li><code>-2<sup>31</sup> <= n <= 2<sup>31</sup>-1</code></li>\n\t<li><code>-10<sup>4</sup> <= x<sup>n</sup> <= 10<sup>4</sup></code></li>\n</ul>\n\n<p> </p>\n\n<p>注意:本题与主站 50 题相同:<a href=\"https://leetcode-cn.com/problems/powx-n/\">https://leetcode-cn.com/problems/powx-n/</a></p>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 281,
|
||||
"likes": 292,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"160.8K\", \"totalSubmission\": \"467.3K\", \"totalAcceptedRaw\": 160790, \"totalSubmissionRaw\": 467282, \"acRate\": \"34.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"168.6K\", \"totalSubmission\": \"489.4K\", \"totalAcceptedRaw\": 168638, \"totalSubmissionRaw\": 489420, \"acRate\": \"34.5%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user