1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-13 11:21:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

add leetcode problem-cn part3

This commit is contained in:
2022-03-27 20:46:41 +08:00
parent 6dafca13c5
commit dfacb20d31
1385 changed files with 115239 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
<p>如果一个正整数自身是回文数,而且它也是一个回文数的平方,那么我们称这个数为超级回文数。</p>
<p>现在,给定两个正整数&nbsp;<code>L</code>&nbsp;<code>R</code> (以字符串形式表示),返回包含在范围 <code>[L, R]</code> 中的超级回文数的数目。</p>
<p>&nbsp;</p>
<p><strong>示例:</strong></p>
<pre><strong>输入:</strong>L = &quot;4&quot;, R = &quot;1000&quot;
<strong>输出:</strong>4
<strong>解释:
</strong>49121以及 484 是超级回文数。
注意 676 不是一个超级回文数: 26 * 26 = 676但是 26 不是回文数。</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ol>
<li><code>1 &lt;= len(L) &lt;= 18</code></li>
<li><code>1 &lt;= len(R) &lt;= 18</code></li>
<li><code>L</code>&nbsp;<code>R</code>&nbsp;是表示&nbsp;<code>[1, 10^18)</code>&nbsp;范围的整数的字符串。</li>
<li><code>int(L) &lt;= int(R)</code></li>
</ol>
<p>&nbsp;</p>