提交时间:2020-10-31 16:40:38

运行 ID: 8173

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