9 solutions

  • 1
    @ 2025-12-6 21:41:12

    #include<bits/stdc++.h> using namespace std; float m,h,ans; int main(){ cin>>m>>h; ans=m/(h*h); if(ans<18.5) { cout<<"Underweight"; } else if(ans>=18.5&&ans<24) { cout<<"Normal"; } else if(ans>=24) { cout<<ans<<"\n"<<"Overweight"; } } 拿去抄吧,不用谢

    Information

    ID
    1342
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    (None)
    # Submissions
    120
    Accepted
    63
    Uploaded By