-->
当前位置:首页 > 题库

PROGRAMMING:Invoice amount (*)

Luz5年前 (2021-05-10)题库471
The amount in Chinese characters is usually printed on the invoice. Please write a program to solve this problem.
####Input format
>Amount value
####Output format
>Amount in words
####Input sample 1
```in
zero point zero zero three two
```
####Output sample 1
```out
Zero
```
####Input sample 2
```in
five hundred thousand and sixteen point zero three eight
```
####Output sample 2
```out
Five hundred and sixteen yuan and forty-four cents
```
Note:
Chinese capital number


< TD align = "center" > < b > Digital












< TD align = "center" > < b > Chinese characters
< TD align = "center" > zero
< TD align = "center" > 1
< TD align = "center" > 2
< TD align = "center" > three
< TD align = "center" > four
< TD align = "center" > Wu
< TD align = "center" > Lu
< TD align = "center" > 7
< TD align = "center" > 8
< TD align = "center" > nine

0123456789

Amount unit


< TD align = "center" > < b > value
< TD align = "center" > < b > unit



< TD align = "center" > billion



< TD align = "center" > 100 million



< TD align = "center" > ten thousand (ten thousand)



< TD align = "center" > million (ten thousand)



< TD align = "center" > one hundred thousand



< TD align = "center" > 10000



< TD align = "center" > 1000



< TD align = "center" > 100



< TD align = "center" >



< TD align = "center" > meta



< TD align = "center" > angle



< TD align = "center" > points

1,000,000,000
100,000,000
10,000,000
1,000,000
100,000
10,000
1,000
100
10
1
0.1
0.01

---
Tip: Chinese characters on PTA platform are encoded by UTF-8, and each Chinese character is 3 bytes.







answer:If there is no answer, please comment