题解 | #百钱买百鸡问题#
百钱买百鸡问题
https://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
n = int(input())
for i in range(21):
for j in range(34):
for k in range(101):
if i+j+k==100 and i*5+j*3+k/3==100:
print(i,j,k)
百钱买百鸡问题
https://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
n = int(input())
for i in range(21):
for j in range(34):
for k in range(101):
if i+j+k==100 and i*5+j*3+k/3==100:
print(i,j,k)
相关推荐