mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
29 lines
907 B
HTML
29 lines
907 B
HTML
<p>给定一个整数,打印该整数的英文描述。</p>
|
||
|
||
<p><strong>示例 1:</strong></p>
|
||
|
||
<pre>
|
||
<strong>输入:</strong> 123
|
||
<strong>输出:</strong> "One Hundred Twenty Three"
|
||
</pre>
|
||
|
||
<p><strong>示例 2:</strong></p>
|
||
|
||
<pre>
|
||
<strong>输入:</strong> 12345
|
||
<strong>输出:</strong> "Twelve Thousand Three Hundred Forty Five"</pre>
|
||
|
||
<p><strong>示例 3:</strong></p>
|
||
|
||
<pre>
|
||
<strong>输入:</strong> 1234567
|
||
<strong>输出:</strong> "One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven"</pre>
|
||
|
||
<p><strong>示例 4:</strong></p>
|
||
|
||
<pre>
|
||
<strong>输入:</strong> 1234567891
|
||
<strong>输出:</strong> "One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One"</pre>
|
||
|
||
<p>注意:本题与 273 题相同:<a href="https://leetcode-cn.com/problems/integer-to-english-words/">https://leetcode-cn.com/problems/integer-to-english-words/</a></p>
|