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 人评分
WU-蓝桥杯算法提高VIP-Quadratic Equation (C++代码)浏览:1802 |
WU-图形输出 (C++代码)浏览:822 |
WU-输入输出格式练习 (C++代码)浏览:1108 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:431 |
出圈】指针malloc版浏览:373 |
DNA (C语言代码)浏览:430 |
C语言训练-亲密数 (C语言描述,反正怎么都能对)浏览:2242 |
C二级辅导-公约公倍 (C语言代码)浏览:531 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:676 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:1199 |