题解 | #百钱买百鸡问题#这题比的是速度
百钱买百鸡问题
http://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
while True:
try:
n = int(input())
for x in range(21):
for y in range(34):
for z in range(0, 100, 3):
if x + y + z == 100 and x * 5 + y * 3 + z / 3 == 100:
print(x, y, z)
except:
break