1 条题解

  • 0
    @ 2025-2-22 9:03:10
    #include <bits/stdc++.h>
    using namespace std;
    int main(){
        double w;
        cin>>w;
        if(w<=10){
            cout<<fixed<<setprecision(2)<<2.5;
        }
        else if(w>10){
            cout<<fixed<<setprecision(2)<<2.5+(w-10)*1.50;
        }
    }
    
    • 1

    信息

    ID
    231
    时间
    1000ms
    内存
    16MiB
    难度
    2
    标签
    递交数
    213
    已通过
    47
    上传者