3 solutions

  • 0
    @ 2022-4-5 1:26:29

    水题

    #include <iostream>
    using namespace std;
    int main()
    {
        double h,w;
        cin >> h >> w;
        double bmi = w/h/h;
        if(bmi >= 24)   cout << "high" << endl;
        else if(bmi >= 18.5) cout << "normal" << endl;
        else cout << "low" << endl;
        return 0;
    }
    

    Information

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