Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
71557 | 胡海峰老师 | 判断身材 | Python3 | Accepted | 35 MS | 3764 KB | 531 | 2024-04-25 21:15:08 |
# 输入身高和体重 height_cm, weight_kg = input().split() height_cm, weight_kg = int(height_cm),int(weight_kg) # 计算标准体重 standard_weight = (height_cm - 100) * 0.9 # 判断体重与标准体重的关系 if weight_kg > standard_weight * 1.1: print("fat") # 如果实际体重超过标准体重的1.1倍,则为肥胖 elif weight_kg < standard_weight * 0.9: print("thin") # 如果实际体重小于标准体重的0.9倍,则为瘦 else: print("standard") # 否则,属于标准范畴