| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 8096 | 孙文谦 | 肥胖问题 | C++ | Accepted | 100 | 0 MS | 248 KB | 304 | 2020-10-31 15:59:33 |
#include<bits/stdc++.h> using namespace std; int main(){ double bmi,m,h; cin>>m>>h; bmi=m/(h*h); if(bmi<18.5){ cout<<"Underweight"; } else if(bmi>=18.5&&bmi<=24){ cout<<"Normal"; } else if(bmi>24){ cout<<bmi<<endl; cout<<"Overweight"; } return 0; }