| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 76768 | sh25_zhuwy | 体质指数BMI | C++ | Accepted | 0 MS | 256 KB | 440 | 2025-12-19 17:50:20 |
#include<bits/stdc++.h> using namespace std; int main() { double a,b; cin>>a>>b; double k=b/a/a; if(k<18.5) { cout<<"偏瘦"; } else if(k<=23.9&&k>=18.5) { cout<<"正常"; } else if(k<=27.9&&k>=24) { cout<<"偏胖"; } else if(k<=39.9&&k>=28) { cout<<"肥胖"; } else { cout<<"极重度肥胖"; } return 0; }