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分
2 人评分
人见人爱A+B (C语言代码)浏览:770 |
【蟠桃记】 (C语言代码)浏览:2022 |
IP判断 (C++代码)浏览:553 |
【C语言训练】排序问题<2> (C++代码)(sort函数)浏览:945 |
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:527 |
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:531 |
计算质因子 (C++代码)浏览:720 |
C语言程序设计教程(第三版)课后习题7.1 (C语言代码)浏览:432 |
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:592 |
WU-复数求和 (C++代码)浏览:1677 |