公鸡5文钱一只,母鸡3文钱一只,小鸡3只一文钱,
用100文钱买一百只鸡,其中公鸡,母鸡,小鸡都必须要有,问公鸡,母鸡,小鸡要买多少只刚好凑足100文钱
def t51():
for i in range(1,34):
for ii in range(1,20):
a=100-i-ii;
if (3 * i + 5 * ii + a / 3)==100:
print("母鸡", "有",i,"公鸡有",ii,"小鸡有",a);
print(t51());