'''
36.有红、黄、白三种球共160个.如果取出红球的1/3,黄球的1/4,白球的1/5,则还剩120个;
如果取出红球的1/5,黄球的1/4,白球的1/3,则剩116个,
问(1)原有黄球几个?(2)原有红球、白球各几个?
'''
for red in range(160):
for yellow in range(160):
for white in range(160):
if red+yellow +white==160 and 160-red/3-yellow/4-white/5==120 and 160-red/5-yellow/4-white/3==116:
print('红球、黄球、白球有几个',red ,yellow ,white)
# 红球、黄球、白球有几个 45 40 75
? # 红球、黄球、白球有几个 45 40 75