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

PROGRAMMING:One coin makes more money

Luz5年前 (2021-05-10)题库441
In our daily life, we often need to convert some large amount of RMB into small change. We know that we have many RMB with face value of 5 yuan, 2 yuan and 1 yuan< br>
Programming: input the amount of money we need to exchange, and then we use these 5 yuan, 2 yuan and 1 yuan RMB to exchange, each face value is required to have at least one, and then output how many kinds of exchange methods< br>
###Input format:
Enter the amount of change to be changed in one line (greater than or equal to 8, less than or equal to 100)
###Output format:
Each line outputs a kind of exchange method, and the output is in the following format (and each face value of RMB is output from small to large): < br > the exchange method of RMB is output from small to large
Five = five yuan quantity, two = two yuan quantity, one = one yuan quantity
###Input example:
Here is a set of inputs. For example:
```in
thirteen
```
###Output example:
The corresponding output is given here. For example:
```out
five=1,two=1,one=6
five=1,two=2,one=4
five=1,two=3,one=2
five=2,two=1,one=1
```







answer:If there is no answer, please comment