萌新求助
查看原帖
萌新求助
354369
封禁用户楼主2020/7/20 15:36

为什么只过了两个测试点?qwq

#include<bits/stdc++.h>
using namespace std;

int main(){
    int a;
    cin >> a;
    double b;
    if(a>=401){
        b = (a-401)*0.5663 + 250*0.4663 + 150*0.4463;
    }
    if(a<401&&a>=150)b = (a - 150)*0.4663 + 150*0.4463;
    else b  = a*0.4463;
    cout << fixed << setprecision(1)<<b;
    retur
2020/7/20 15:36
加载中...