1 条题解

  • 1
    @ 2025-3-22 15:46:35

    #include<bits/stdc++.h> using namespace std; int main(){ double m,h,bmi; cin>>m>>h; bmi=m/(h*h); if(bmi<18.5) cout<<"Underweight"; if(bmi>=18.5 and bmi<24) cout<<"Normal"; if(bmi>=24){ cout<<bmi<<endl; cout<<"Overweight"; } return 0; }

    • 1

    信息

    ID
    2331
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    (无)
    递交数
    63
    已通过
    9
    上传者