题解 | #百钱买百鸡问题#
百钱买百鸡问题
https://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
for x in range(0,100): for y in range(1,100-x): z=100-x-y if (5*x+3*y+(1/3)*z==100): print(x,y,z)
百钱买百鸡问题
https://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
for x in range(0,100): for y in range(1,100-x): z=100-x-y if (5*x+3*y+(1/3)*z==100): print(x,y,z)
相关推荐