提交时间:2020-10-31 16:23:07

运行 ID: 8155

#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){ printf("%.6lf",ans); cout<<endl; cout<<"Overweight"; } return 0; }