题解 | #百钱买百鸡问题#
百钱买百鸡问题
https://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
import sys a = input() b = [5,3,1/3] for i in range(0,100): for j in range(0,100): if i*b[0]+j*b[1]+(100-i-j)*b[2] == 100 and 100-i-j >= 0: print(i,j,100-i-j)