没用结构体感觉更简单,直接循环和分支结构,但是错了三个样例,不道怎么错的呜呜呜┭┮﹏┭┮
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < n; i++) {
int id, a, b;
cin >> id >> a >> b;
int sum = a + b;
int score = a * 7 + b * 3;
if (sum >= 140 && score >= 800) {
cout << "Excellent" << endl;
} else {
cout << "Not excellent" << endl;
}
}
return 0;
}