Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
8206 老师 肥胖问题 C++ Accepted 100 0 MS 252 KB 244 2020-10-31 17:16:38

Tests(3/3):


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


Judgement Protocol: