Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8090 陆诗奕 肥胖问题 C++ 通过 100 0 MS 256 KB 234 2020-10-31 15:56:36

Tests(3/3):


#include<bits/stdc++.h> using namespace std; int main(){ double m,h,b; cin>>m>>h; b=m/(h*h); if(b<18.5){ cout<<"Underweight"; } if(b>=18.5&&b<=24) cout<<"Normal"; if(b>24) cout<<b<<endl<<"Overweight"; return 0; }


测评信息: