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

PROGRAMMING:Buy steamed buns

Luz5年前 (2021-05-10)题库525
The breakfast shop sells three kinds of steamed buns, three yuan each for beef stuffing, two yuan each for pork stuffing and one yuan each for plain stuffing. Xiaoming's mother gives Xiaoming a sum of money and asks him to buy steamed buns. Each kind of stuffing is required. How many combinations does Xiaoming have?
###Input format:
Enter the amount of money Xiao Ming's mother gave him (a positive integer between 6 and 100)
###Output format:
According to the order of cattle, pig and vegetable, the number of steamed buns with various fillings should be output from small to large. Each line outputs one substitution: < br > 1
Cattle = quantity of beef stuffed buns, pig = quantity of pork stuffed buns, vegetable = quantity of plain stuffed buns
###Input example:
Here is a set of inputs. For example:
```in
ten
```
###Output example:
The corresponding output is given here. For example:
```out
cattle=1,pig=1,vegetable=5
cattle=1,pig=2,vegetable=3
cattle=1,pig=3,vegetable=1
cattle=2,pig=1,vegetable=2
```







answer:If there is no answer, please comment