| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 0 | 0 | 0 | 0.000% |
Checks contain their value written both numerically and as words. Write a program to read a positive dollar amount less than a trillion, with two decimal places, and display the amount in words.
Here is the output for 64325.28:
SIXTY FOUR THOUSAND THREE HUNDRED TWENTY FIVE AND TWENTY EIGHT/100 DOLLARS
Notice that the word "AND" only appears before the hundredths. Spelling counts! Traditional American counting rules apply.
A single line containing a dollar amount less than a trillion dollars.
A single line with the word representation of the number exactly as patterned here.
123.45
ONE HUNDRED TWENTY THREE AND FORTY FIVE/100 DOLLARS