Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
39736 | luozihao | 健康身材(health)(2024年岳阳市赛小学组) | C++ | 通过 | 0 MS | 252 KB | 298 | 2024-05-05 13:51:31 |
#include<bits/stdc++.h> using namespace std; double kg,cm,bmi; int main(){ cin>>kg>>cm; bmi=kg/((cm*cm)/10000); if(bmi<18.5){ cout<<"thin"; return 0; }else if(bmi>=18.5&&bmi<=24){ cout<<"great"; return 0; }else if(bmi>24){ cout<<"fat"; return 0; } return 0; }