Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
71556 | 胡海峰老师 | 判断身材 | Python3 | Accepted | 32 MS | 3772 KB | 485 | 2024-04-25 21:11:24 |
# 输入身高和体重 height_cm, weight_kg = map(int, input().split()) # 计算标准体重 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") # 否则,属于标准范畴