2022-03-29 12:43:11 +08:00
|
|
|
<p>Given any integer, print an English phrase that describes the integer (e.g., "One Thousand Two Hundred Thirty Four").</p>
|
|
|
|
|
|
|
|
<p><strong>Example 1:</strong></p>
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<strong>Input:</strong> 123
|
|
|
|
<strong>Output:</strong> "One Hundred Twenty Three"
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<p><strong>Example 2:</strong></p>
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<strong>Input:</strong> 12345
|
|
|
|
<strong>Output:</strong> "Twelve Thousand Three Hundred Forty Five"</pre>
|
|
|
|
|
|
|
|
<p><strong>Example 3:</strong></p>
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<strong>Input:</strong> 1234567
|
|
|
|
<strong>Output:</strong> "One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven"</pre>
|
|
|
|
|
|
|
|
<p><strong>Example 4:</strong></p>
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
<strong>Input:</strong> 1234567891
|
|
|
|
<strong>Output:</strong> "One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One"</pre>
|