Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
6120 | weihushan | 肥胖问题 | C++ | 通过 | 100 | 1 MS | 800 KB | 251 | 2020-08-22 16:24:57 |
#include<iostream> using namespace std; int main() { double h,z,m; cin>>m>>h; z=m/(h*h); if(z<18.5) cout<<"Underweight"; if(z>=18.5&&z<24) cout<<"Normal"; if(z>24) { cout<<z<<endl; cout<<"Overweight"; } return 0; }