一个40的(不知道会不会被理)
查看原帖
一个40的(不知道会不会被理)
785193
Iochi_YC楼主2024/12/27 23:57
#include <bits/stdc++.h>
using namespace std;
double man,bou;
int main() {
    cin>>man;
    if(man<=150){
         cout<<fixed<< setprecision(1)<<man*0.4463;
        man-=149;
    }if(man>=151||man<=400){
         cout<<fixed<< setprecision(1)<<man*0.4663;
         man-=400;
    }if(man>=401){
       cout<<fixed<< setprecision(1)<<man*0.5663;
    }
     
    return 0;
}

In:267

Out:124.5

哪里多的三啊!!!

2024/12/27 23:57
加载中...