4 solutions

  • 0
    @ 2025-3-23 21:31:57
    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
        double w,h,tol;
        cin>>h>>w;
        tol = w / (h * h);
        //cout<<tol<<"\n";
        if(tol < 18.5)cout<<"low"<<"\n";
        else if(tol >= 18.5 && tol < 24)cout<<"normal"<<"\n";
        else if(tol > 24)cout<<"high"<<"\n";
        return 0; 
    }
    
    
    

    Information

    ID
    88
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    5
    Tags
    # Submissions
    707
    Accepted
    275
    Uploaded By