아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Checks

시간 제한1초메모리 제한1024 MB

요약
1조 달러 미만의 금액을 수표에 쓰는 미국식 영문 표기로 바꾸고, 소수 부분은 100분의 몇으로 적는다.
난이도

보통10점 중 6점

유형
문자열, 구현, 수학, 시뮬레이션
정답자
아직 제출이 없습니다

문제

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.

예제1

  1. 예제 1

    입력
    123.45
    
    예상 출력
    ONE HUNDRED TWENTY THREE AND FORTY FIVE/100 DOLLARS