CCF真题
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<stack>
#include<queue>
#include<map>
#include<set>
#include<climits>
#include<cstdbool>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
int T;
cin>>T;
if(T<=3500)
cout<<T;
else if(T<=4955)
cout<<(T-3500)*1.0/0.97+3500;
else if(T<=7655)
cout<<(T-4955)*1.0/0.9+5000;
else if(T<=11255)
cout<<(T-7655)*1.0/0.8+8000;
else if(T<=30755)
cout<<(T-11255)*1.0/0.75+12500;
else if(T<=44755)
cout<<(T-30755)*1.0/0.7+38500;
else if(T<=61005)
cout<<(T-44755)*1.0/0.65+58500;
else
cout<<(T-61005)*1.0/0.55+83500;
return 0;
}