Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8141 贺昱翔 肥胖问题 C++ 通过 100 0 MS 248 KB 295 2020-10-31 16:09:26

Tests(3/3):


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


测评信息: