# 最优解 for num in range(4): print(f'{4*num} {25-7*num} {75+3*num}') # 我的代码 def func(): input() m = 100 for z in range(0, 99, 3): for x in range(0, 20): # 公鸡最多20只 y = 100 -z - x # 母鸡数量 if 5*x + 3*y == 100 - z//3 and y >= 0: print(f'...