3 条题解

  • 0
    @ 2023-4-4 17:41:25
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double x,y,z;
        cin>>x>>y>>z;
        double ans=x+y+z;
        if (ans>=200)
            cout<<fixed<<setprecision(1)<<0.8*ans;
        else
            cout<<fixed<<setprecision(1)<<0.9*ans;
        return 0;
    }
    • 0
      @ 2023-2-26 20:31:53

      #include<bits/stdc++.h> using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; if(a+b+c>=200){ printf("%.1f",(a+b+c)*0.8); } else printf("%.1f",(a+b+c)*0.9); return 0; }

      • 0
        @ 2022-11-20 13:22:16

        很简单的题,为什么没题解呢?(AC过了)

        #include <bits/stdc++.h>
        using namespace std;
        int main()
        {
            double a, b, c;
            cin >> a >> b >> c;
            double num = a + b + c;
            if (num >= 200)
            {
                cout << fixed << setprecision(1) << num * 0.8;
            }
            else if (num < 200)
            {
                cout << fixed << setprecision(1) << num * 0.9;
            }
            return 0;
        }
        
        • 1

        信息

        ID
        621
        时间
        1000ms
        内存
        128MiB
        难度
        2
        标签
        递交数
        111
        已通过
        65
        上传者