Problem4005--【入门】百钱百鸡问题

4005: 【入门】百钱百鸡问题

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Submit

Description

用100元钱买100只鸡,公鸡,母鸡,小鸡都要有。公鸡5元1只,母鸡3元1只,小鸡1元3只。请问公鸡,母鸡,小鸡各应该买多少只?

Output

每种买法占一行,由3个数组成,顺序为 公鸡数 母鸡数 小鸡数。每个数字空格隔开。

Sample Input Copy


Sample Output Copy

4 18 78
8 11 81
12 4 84

Source/Category