import java.util.Scanner;
public class Main {
public static int wage(int a){
if(a<=100000)
return (int) (a*0.1);
else if(100000<a&&a<=200000)
return (int) (100000*0.1+(a-100000)*0.075);
else if(200000<a&&a<=400000)
return (int) (100000*0.1+100000*0.075+(a-200000)*0.05);
else if(400000<a&&a<=600000)
return (int) (100000*0.1+100000*0.075+200000*0.05+(a-40000)*0.03);
else if(600000<a&&a<=1000000)
return (int) (100000*0.1+100000*0.075+200000*0.05+40000*0.03+(a-60000)*0.015);
else
return (int) (100000*0.1+100000*0.075+200000*0.05+40000*0.03+60000*0.015+(a-1000000)*0.01);
}
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.print(wage(a));
}
}
0.0分
4 人评分
C语言程序设计教程(第三版)课后习题8.6 (C语言代码)浏览:564 |
A+B for Input-Output Practice (IV) (C++代码)浏览:713 |
兰顿蚂蚁 (C++代码)浏览:1159 |
【排队买票】 (C语言代码)浏览:944 |
剪刀石头布 (C语言代码)浏览:1792 |
IP判断 (C语言描述,蓝桥杯)浏览:1118 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:513 |
交换Easy (C语言代码)浏览:805 |
生日日数 (C语言代码)浏览:1574 |
筛排处理 (C语言代码)浏览:830 |