Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
29530 | 袁振宁 | 肥胖问题 | C++ | 通过 | 100 | 1 MS | 788 KB | 259 | 2022-07-20 18:51:42 |
#include <iostream> #include <cstdio> using namespace std; int main() { double m,h,x; cin>>m>>h; x = m/(h * h); if(x < 18.5) cout<<"Underweight"; else if(18.5 <= x && x<24) cout <<"Normal"; else cout<<x<<endl<<"Overweight"; return 0; }