提交时间:2025-12-19 19:03:32

运行 ID: 76782

#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; }