80pts求助
查看原帖
80pts求助
739233
wangjue1629楼主2023/10/31 20:19

CodeCode :

#include<iostream>
#include<string>
using namespace std;
const int maxn = 1000 + 10;
struct Node{
    int xh, xy, sz;
}a[maxn];
string inb(int a, int b){
    return (a * 7 + b * 3) > 800 && (a + b > 140) ? "Excellent" : "Not excellent";
}
int main(){
    int n; cin >> n;
    for(int i = 1; i <= n; i++){
        cin >> a[i].xh >> a[i].xy >> a[i].sz;
        cout << inb(a[i].xy, a[i].sz) << "\n";
    }
    return 0;
}

最后一个 nn 为 10001000 的点 WA 了,没看出来为啥,有dalao知道我错在哪了吗?

2023/10/31 20:19
加载中...