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;}

    • 0
      @ 2023-7-27 18:09:16

      #include using namespace std; int main() { float a,b; scanf("%f",&a); if(a<=1000) b=0.95a; else b=10000.95+(a-1000)*0.9; printf("%.2f\n",b); return 0; }

      • 1

      信息

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