3 条题解

  • 1
    @ 2025-3-9 18:27:28
    }else{
            total+=a*15;
        }
        if(c==0){
            total+=b*20;
        }
        cout<<total<<endl;
    }
    
    • 0
      @ 2023-10-26 18:24:09

      • -1
        @ 2024-5-21 13:06:36

        #include <iostream> using namespace std;

        int main() { int a, b, c; cin >> a >> b >> c;

        int total = 0;
        if (a <= 5) {
            total += a * 20;
        } else if (a <= 10) {
            total += a * 18;
        } else {
            total += a * 15;
        }
        
        if (c == 0) {
            total += b * 20;
        }
        
        cout << total << endl;
        return 0;
        

        }

        • 1

        信息

        ID
        939
        时间
        1000ms
        内存
        256MiB
        难度
        2
        标签
        递交数
        152
        已通过
        35
        上传者