Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
8177 郑奚桐 肥胖问题 C++ Wrong Answer 0 0 MS 252 KB 265 2020-10-31 16:45:54

Tests(0/3):


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


Judgement Protocol: