提交时间:2020-10-31 16:00:10
运行 ID: 8097
#include<bits/stdc++.h> using namespace std; int main(){ double w,h,ans; cin>>w>>h; ans=w/(h*h); if(ans<18.5) cout<<"Underweight"; if(ans>=18.5&&ans<24) cout<<"Normal"; if(ans>24) cout<<ans<<endl<<"Overweight"; return 0; }