Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8920 D班-陈颖钧 薪水计算 C++ 通过 100 1 MS 264 KB 340 2025-04-06 13:31:00

Tests(10/10):


#include<bits/stdc++.h> using namespace std; double x,y; int main(){ cin>>x>>y; if(x<40){ cout<<setprecision(2)<<fixed<<x*y; }else if(x<50){ cout<<setprecision(2)<<fixed<<40*y+(x-40)*(y*1.5); }else{ cout<<setprecision(2)<<fixed<<40*y+10*(y*1.5)+(x-50)*(y*2); } return 0; }


测评信息: