Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
39631 | -若只- | 健康身材(health)(2024年岳阳市赛小学组) | C++ | 通过 | 0 MS | 252 KB | 323 | 2024-05-05 08:21:04 |
#include<bits/stdc++.h> using namespace std; double t,m,BMI; int main(){ cin>>t>>m; //freopen("health.in","r",stdin); //freopen("health.out","w",stdout); m=m/100; if(t/(m*m)<18.5){ cout<<"thin"; } if(t/(m*m)>=18.5&&t/(m*m)<=24){ cout<<"great"; } if(t/(m*m)>24){ cout<<"fat"; } return 0; }