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

PROGRAMMING:Bonus

Luz5年前 (2021-05-10)题库627
An enterprise pays bonus according to its employees' industrial performance at the end of the year, and the known amount of bonus is only a few hundred yuan.
Please write a program to help the cashier pay the full amount of bonus with the least banknotes.
It is known that the denominations of banknotes are 100 yuan, 50 yuan, 20 yuan, 10 yuan, 5 yuan, 2 yuan and 1 yuan.
####Input format
>Amount (integer in Yuan)
####Output format
>Output the number of banknotes in the order of banknote denomination from large to small (see output example)
####Input sample
```in
five hundred and eighty-two
```
####Output sample
```out
100 yuan: 5 pieces
50 yuan: 1 piece
20 yuan: 1 piece
10 yuan: 1 piece
5 yuan: 0
2 yuan: 1 piece
1 yuan: 0
```







answer:If there is no answer, please comment