Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
6083 జ్ఞాًॣॣ 肥胖问题 C++ 通过 100 1 MS 792 KB 329 2020-08-22 14:48:16

Tests(30/30):


#include <iostream> #include <cmath> #include <cstdio> using namespace std; int main() { double m, h, bml; cin>>m>>h; bml = 1.0*m/(h*h); if(bml < 18.5) { cout<<"Underweight"; } else if(18.5<=bml && bml<24) { cout <<"Normal"; } else { cout<<float(bml)<<endl<<"Overweight"; } return 0; }


测评信息: