Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
76782 sh25_shenpy 体质指数BMI C++ Accepted 0 MS 252 KB 440 2025-12-19 19:03:32

Tests(5/5):


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


Judgement Protocol: