文章
7
粉丝
5
获赞
209
访问
3.9k
#include<stdio.h>
int main(){
double x=0;
double y=0;
scanf("%lf", &x);
if(x<=100000){
y=x*0.1;
}
else if(x<=200000){
y=(x-100000)*0.075+100000*0.1;
}
else if(x<=400000){
y=(x-200000)*0.05+100000*0.075+100000*0.1;
}
else if(x<=600000){
y=(x-400000)*0.03+200000*0.05+100000*0.075+100000*0.1;
}
else if(x<=1000000){
y=(x-600000)*0.015+200000*0.03+200000*0.05+100000*0.075+100000*0.1;
}
else {
y=(x-1000000)*0.01+400000*0.015+200000*0.03+200000*0.0...
登录后发布评论
暂无评论,来抢沙发