文章
84
粉丝
408
获赞
33
访问
877.0k
#include<iostream>
using namespace std;
int main()
{
int num;
cin >> num;
if (num <= 100000)
cout << num*0.1 << endl;
else if (num <= 200000)
cout << 10000 + (num-100000)*0.075 << endl;
else if (num <= 400000)
cout << 10000 + 7500 + (num-200000)*0.05 << endl;
else if (num <= 600000)
cout << 10000 + 7500 + 10000 + (num-400000)*0.03 << endl;
else if (num <= 1000000)
cout << 10000 + 7500 + 10000 + 6000 + (num-600000)*0.015 << endl;
else
cout << 10000 + 7500 + 10000 + 6000 + 6000 + (num-1000000)*0.01 << endl;
return 0;
}
登录后发布评论
暂无评论,来抢沙发