#include <stdio.h>
int main(int argc, const char * argv[]) {
long int lirun;
long int bonus;
//输入利润
printf("请输入利润金额:");
scanf("%ld",&lirun);
//判断所输入的利润,计算应发的奖金
if(lirun<=100000){
bonus=lirun*0.1;
}
else if(lirun>100000&&lirun<200000){
bonus=100000*0.1+(lirun-100000)*0.075;
}
else if(lirun>=200000&&lirun<400000){
bonus=100000*0.1+(lirun-100000)*0.75+(lirun-200000)*0.05;
}
else if(lirun>=400000&&lirun<600000){
bonus=100000*0.1+(lirun-100000)*0.75+(lirun-200000)*0.05+(lirun-400000)*0.03;
}
else if(lirun>=600000&&lirun<1000000){
bonus=100000*0.1+(lirun-100000)*0.75+(lirun-200000)*0.05+(lirun-400000)*0.03+(lirun-600000)*0.015;
}
else{
bonus=100000*0.1+(lirun-100000)*0.75+(lirun-200000)*0.05+(lirun-400000)*0.03+(lirun-600000)*0.015+(lirun-1000000)*0.01;
}
//输出奖金
printf("应发放的奖金为:%ld\n",bonus);
return 0;
}