题解 | #百钱买百鸡问题#
百钱买百鸡问题
http://www.nowcoder.com/practice/74c493f094304ea2bda37d0dc40dc85b
#我震惊,这输入没看懂。 while True: try: n = int(input()) man = 5 wm = 3 b = 1/3 for i in range(100): for j in range(100): for k in range(100): if (i + j + k == 100) and (man * i + wm * j + b*k ==100): print(i,j,k,end="\n") except: break