题解 | #百钱买百鸡问题#
百钱买百鸡问题
https://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
n = input() n = 100 a, b, c = 0, 0, 0 for d in range(21): for f in range(34): for g in range(0,301,3): if d * 5 + f * 3 + int(g/3) == 100 and d + f + g == 100: print(str(d) + ' ' + str(f) + ' ' + str(g))