#include<stdio.h>
#include<math.h>
int main() {
double a,b, c, x,y;
b = 10000;
y = 40000;
c = 50000;
a = 1500;
printf("请输入销售额\n");
scanf_s("%lf", &x);
if (x <= b) {
printf("%.2f\n",a+ (x * 0.05));
}
else if (x >= b && x < c) {
printf("%.2f\n",a + b * 0.05 + ((x - b) * 0.03));
}
else if (x >= c) {
printf("%.2f\n",a + b * 0.05 + ( y * 0.03) + ((x - c) * 0.02));
}
return 0;
}