标签:class 描述 输出 main turn 用例 bit col c++
#include<bits/stdc++.h> using namespace std; int main() { double T; cin>>T; int w; double x; if(T<=3500) w=int(T); else if(T>3500&&T<=4955) { x=(T-3500)/0.97+3500; w=int(x); }else if(T>4955&&T<=7655) { x=(T-3500+45-1500)/0.90+3500+1500; w=int(x); }else if(T>7655&&T<=11255) { x=(T-3500+45+300-4500)/0.8+3500+4500; w=int(x); }else if(T>11255&&T<=30755) { x=(T-3500+45+300+900-9000)/0.75+3500+9000; w=int(x); } else if(T>30755&&T<=44755) { x=(T-3500+45+300+900+6500-35000)/0.7+3500+35000; w=int(x); } else if(T>44755&&T<=61005) { x=(T-3500+45+300+900+6500+6000-55000)/0.65+3500+55000; w=int(x); } else if(T>61005) { x=(T-3500+45+300+900+6500+6000+8750-80000)/0.55+3500+80000; w=int(x); } printf("%d\n",w); return 0; }
标签:class 描述 输出 main turn 用例 bit col c++
原文地址:https://www.cnblogs.com/ellen-mylife/p/11291355.html