Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
39629 | JWM918 | 健康身材(health)(2024年岳阳市赛小学组) | C++ | 通过 | 0 MS | 240 KB | 266 | 2024-05-05 08:20:38 |
#include<bits/stdc++.h> using namespace std; double m,h,sum; int main(){ cin>>m>>h; h/=100; sum=m/(h*h); if(sum<18.5)cout<<"thin"<<endl; else if(sum>=18.5&&sum<=24)cout<<"great"<<endl; else if(sum>24)cout<<"fat"<<endl; return 0; }