2 条题解

  • 1
    @ 2024-12-13 22:15:05
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        //还是要撸代码的,神。
        float a,b,c;
        cin>>a>>b;
        c=(a-100)*0.9;
        if(b > 1.1 * c) {  // 如果实际体重超过标准体重的 1.1 倍,输出 fat
            cout<<"fat";
        } else if(b < 0.9 * c) {  // 如果实际体重小于标准体重的 0.9 倍,输出 thin
            cout<<"thin";
        } else {  // 其他情况输出 standard
            cout<<"standard";
        }
        return 0;
    //法海是个er
    }
    
    

    信息

    ID
    9
    时间
    1000ms
    内存
    64MiB
    难度
    6
    标签
    递交数
    25
    已通过
    11
    上传者