提交时间:2026-06-12 15:00:23

运行 ID: 91058

#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<<"偏瘦"<<endl;; }else if(k<=23.9&&k>=18.5){ cout<<"正常"<<endl;; }else if(k<=27.9&&k>=24){ cout<<"偏胖"<<endl;; }else if(k<=39.9&&k>=28){ cout<<"肥胖"<<endl;; }else{ cout<<"极重度肥胖"<<endl;; }return 0; }