1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (English)/整数的英语表示(English) [english-int-lcci].html

27 lines
896 B
HTML

<p>Given any integer, print an English phrase that describes the integer (e.g., &quot;One Thousand Two Hundred Thirty Four&quot;).</p>
<p><strong>Example 1:</strong></p>
<pre>
<strong>Input:</strong> 123
<strong>Output:</strong> &quot;One Hundred Twenty Three&quot;
</pre>
<p><strong>Example 2:</strong></p>
<pre>
<strong>Input:</strong> 12345
<strong>Output:</strong> &quot;Twelve Thousand Three Hundred Forty Five&quot;</pre>
<p><strong>Example 3:</strong></p>
<pre>
<strong>Input:</strong> 1234567
<strong>Output:</strong> &quot;One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven&quot;</pre>
<p><strong>Example 4:</strong></p>
<pre>
<strong>Input:</strong> 1234567891
<strong>Output:</strong> &quot;One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One&quot;</pre>