#include<iostream>
#include<iomanip>
using namespace std;
int main(){
int y,t;
float s;
cin>>y>>t;
cout<<setiosflags(ios::fixed)<<setprecision(2);
if(y<=4)
if(t<=40)
s=30*t;
else
s=1200+(t-40)*45;
else
if(t<=40)
s=50*t;
else
s=2000+(t-40)*75;
cout<<s<<endl;
return 0;
}
分支-11. 计算工资(15),布布扣,bubuko.com
原文地址:http://www.cnblogs.com/gnodidux/p/3819831.html