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

PROGRAMMING:Exchange a specified amount of coins

Luz5年前 (2021-05-10)题库459
One yuan and eighty cents RMB is exchanged for five, two and one cent coins (each one is required). The total number of coins is 100. Please write a program to give a variety of exchange programs.
###Input format:
The input is a positive integer n, which indicates that the first N possible schemes are required to be output. The order of the scheme is from more to less in accordance with the five cent coin.
###Output format:
Show the number of 5, 2 and 1 cent coins in the first n schemes. Each line shows a scheme with one space between the numbers and no space after the last number.
Note: if there are less than n schemes, output all possible schemes in sequence.
###Input example:
```in
five
```
###Output example:
```out
19 4 77
18 8 74
17 12 71
16 16 68
15 20 65
```







answer:If there is no answer, please comment