1072 百钱买百鸡问题


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

有一个人有一百块钱,打算买一百只鸡。到市场一看,大鸡三块钱一只,小鸡一块钱三只,不大不小的鸡两块钱一只。现在,请你编一程序,帮他计划一下,怎样买,才能刚好用一百块钱买一百只鸡?

Input

Output

按从小到大的顺序,每行分别输出 大鸡数,空一格,中鸡数,空一格,小鸡数。


Comments

There are no comments at the moment.