import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
double a;
a = cin.nextDouble();
double money;
if(a>=5000)a*=0.8;
else if(a>=3000)a*=0.85;
else if(a>=1000)a*=0.9;
else if(a>=500)a*=0.95;
System.out.printf("%.2f",a);
}
}
java——ZZULIOJ_1034: 夏季促销
最新推荐文章于 2022-05-03 11:04:10 发布