提交时间:2020-10-31 16:39:00
运行 ID: 8171
#include<bits/stdc++.h> using namespace std; int m; double h,ans; int main(){ 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; }