Lang:G++
Edit12345678910111213141516#include<iostream>using namespace std;int main() {double y=0.0;cin>>y;double x=0.0;if(y<=45) x=3500+y/0.03;else if(y>45 && y<=345) x=5000+ (y-45)/0.1;else if(y>345 && y<=1245) x=8000 + (y-345)/0.2;else if(y>1245 && y<=7745) x=12500+(y-1245)/0.25;else if(y>7745 && y<=13745) x=38500+(y-7745)/0.3;else if(y>13745 && y<=22495) x=58500+(y-13745)/0.35;else if(y>22495) x=83500 + (y-22495)/0.45;cout << (int)x << endl;}