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

PROGRAMMING:RMB exchange

Luz5年前 (2021-05-10)题库446
1 yuan and 50 cents RMB can be exchanged for 100 coins of 5 cents, 2 cents and 1 cents (each one must have). There are many exchange schemes. 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 plans is from less to more in the order of five cents.
###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
1 46 53
2 42 56
3 38 59
4 34 62
5 30 65
```






answer:If there is no answer, please comment