Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
6119 | weihushan | 肥胖问题 | C++ | 解答错误 | 0 | 1 MS | 780 KB | 258 | 2020-08-22 16:21:12 |
#include<iostream> using namespace std; int main() { double h,z; int 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; }