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