#include void main() { long int i; int n; double w; scanf("%ld",&i); n=i/1000000; if(n>10) n=10; switch(n) { case 0:w=i*0.1;break; case 1:w=100000*0.1+(i-100000)*0.075;break; case 2: case 3:w=100000*0.1+100000*0.075+... #include
void main()
{
long int i;
int n;
double w;
scanf("%ld",&i);
n=i/1000000;
if(n>10)
n=10;
switch(n)
{
case 0:w=i*0.1;break;
case 1:w=100000*0.1+(i-100000)*0.075;break;
case 2:
case 3:w=100000*0.1+100000*0.075+(i-200000)*0.05;break;
case 4:
case 5:w=100000*0.1+100000*0.075+200000*0.05+(i-400000)*0.03;break;
case 6:
case 7:
case 8:
case 9:w=100000*0.1+100000*0.075+200000*0.05+200000*0.03+(i-600000)*0.015;break;
case 10:w=100000*0.1+100000*0.075+200000*0.05+200000*0.03+400000*0.015+(i-1000000)*0.01;break;
}
printf("奖金是:%lf\n",w);
}