import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); double n=sc.nextDouble(); double a=0; if(n<=100000){ a=0.1*n; }else if(n>100000&&n<=200000){ a=10000+0.075*(n-100000); }else if(n>200000&&n<=400000){ a=17500+0.05*(n-200000); }else if(n>400000&&n<=600000){ a=27500+0.03*(n-400000); }else if(n>600000&&n<=1000000){ a=33500+0.015*(n-600000); }else{ a=39500+0.01*(n-1000000); } System.out.printf("%.2f\n",a); } }
0.0分
1 人评分