QWQ奉上代码:
#include <bits/stdc++.h>
using namespace std;
struct a{
int b,c,d,sum;
}e[10005];
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
cin>>e[i].b>>e[i].c>>e[i].d;
e[i].sum=e[i].c+e[i].d;
}
for(int i=1;i<=n;i++){
if(e[i].sum>140&&e[i].c*3+e[i].d*7>=800){
cout<<"Excellent"<<endl;
}else{
cout<<"Not excellent"<<endl;
}
}
return 0;
}
有空看一下: