文章
79
粉丝
221
获赞
46
访问
198.1k
#include <iostream>
using namespace std;
int main() {
float sum =0,a;
cin>>a;
if(a<=100000)
sum=a*10/100;
else if(a<=200000)
sum = 100000*10/100+(a-100000)*7.5/100;
else if(a<=400000)
sum = 100000*10/100+100000*7.5/100+(a-200000)*5/100;
else if(a<=600000)
sum = 100000*10/100+100000*7.5/100+200000*5/100+(a-400000)*3/100;
else if(a<=1000000)
sum = 100000*10/100+100000*7.5/100+200000*5/100+200000*3/100+(a-600000)*1.5/100;
else
sum = 100000*10/100+100000*7.5/100+200000*5/100+200000*3/100+400000*1.5/100+(a-1000000)*1/100;
cout<<sum;
return 0;
}
登录后发布评论
暂无评论,来抢沙发