提交时间:2020-10-31 17:04:09

运行 ID: 8196

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