题解 | #百钱买百鸡问题#
百钱买百鸡问题
http://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
num = input() price = [5,3,1/3] for i in range(21): for j in range(34): for k in range(100): if i*price[0]+j*price[1]+k*price[2] == 100 and i+j+k == 100: print(*[i,j,k])