题解 | #衡量人体胖瘦程度#
衡量人体胖瘦程度
http://www.nowcoder.com/practice/4d604603fae94a26b59b7bc18f363bc0
while True:
try:
weigth ,heigth = map(int,input().split())
BIM = weigth/((heigth/100)**2)
if BIM < 18.5:
print("Underweight")
elif BIM >= 18.5 and BIM <=23.9:
print("Normal")
elif BIM >= 23.9 and BIM <28.0:
print("Overweight")
else:
print("Obese")
except EOFError:
break


查看2道真题和解析