样例都过不了(气死人的第一个点)
查看原帖
样例都过不了(气死人的第一个点)
990781
pppppLF楼主2023/5/5 21:45

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;
}

有空看一下:

其他疑惑

其他疑惑1

其他疑惑2

2023/5/5 21:45
加载中...