Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8657 D班-汤依宁 薪水计算 C++ 通过 100 1 MS 264 KB 266 2025-04-02 21:39:16

Tests(10/10):


#include <bits/stdc++.h> using namespace std; int main() { double a, b,n; cin >> a >> b; if (a <= 40) { n = a*b; } else if (a <= 50) { n =40*b+(a-40)*b*1.5; } else { n = 40*b+10*b*1.5+(a - 50)*b*2; } cout<<fixed<<setprecision(2)<<n<<endl; }


测评信息: