当前位置:网站首页>CSP salary calculation

CSP salary calculation

2022-07-06 09:08:00 < WRM>

#include<bits/stdc++.h>

using namespace std;

int main() {
    
	int t;
	scanf("%d",&t);
	int s;
	if(t<=3500) {
    
		s=t;
	} else if(t<=3500+1500-45) {
    
		s=(t-105)*100/97;
	} else if(t<=8000-45-300) {
    
		s=(t-455)*10/9;
	}else if(t<=3500+9000-45-300-900) {
    
		s=(t+345-1600)*10/8;
	}else if(t<=3500+35000-45-300-900-(35000-9000)*0.25) {
    
		s=(t-1880)*100/75;
	} else if(t<=3500+55000-45-300-900-6500-6000) {
    
		s=(t-3805)*10/7;
	} else if(t<=3500+80000-8750-6000-6500-900-300-45) {
    
		s=(t-6730)*100/65;
	} else {
    
		s=(t-15080)*100/55;
	}
	printf("%d",s);
	return 0;
}
原网站

版权声明
本文为[&lt; WRM&gt;]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131805500613.html