7 条题解

  • 1
    @ 2024-5-15 18:25:46

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

    信息

    ID
    621
    时间
    1000ms
    内存
    125MiB
    难度
    5
    标签
    (无)
    递交数
    505
    已通过
    190
    上传者