WA,求大佬调
查看原帖
WA,求大佬调
1495577
zhangxuanhzo楼主2024/12/25 19:54
#include<bits/stdc++.h>
using namespace std;
struct pj{
	int x,c,s;
}s[1001];
int act(int a,int b){
	if(a+b>140||a*7+b*3>=800) return 1;
	else return 0;
}
int main(){
	int n;
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>s[i].x>>s[i].c>>s[i].s;
	}
	for(int j=1;j<=n;j++){
		if(act(s[j].c,s[j].s)==1) cout<<"Excellent"<<endl;
		else cout<<"Not excellent"<<endl;
	}
	return 0;
}
2024/12/25 19:54
加载中...