1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/整数的英语表示 [english-int-lcci].html
2022-03-29 12:43:11 +08:00

29 lines
907 B
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>