秋声赋
秋声赋回复给帖子:9465581
>>
完整版
[mw_shl_code=python,true]heads= int(input('Heads:'))
legs = int(input('Legs:'))
for c in range(1,heads):
if((heads - c)*4+c*2 == legs):
print('Chicken = ',c,'Rabbit = ',(heads - c))
break[/mw_shl_code]