2 条题解

  • 0
    @ 2025-1-26 18:27:46

    #include <bits/stdc++.h> using namespace std;
    int main() { double a,b; cin>>a; if(a<=1000) { b=a*0.95; cout<<fixed<<setprecision(2)<<b; } else {

       b=(a-1000)*0.9+1000*0.95;
       cout<<fixed<<setprecision(2)<<b;	
    }
    

    return 0;}

    信息

    ID
    318
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    (无)
    递交数
    280
    已通过
    152
    上传者