本地跑过了洛谷跑不过
查看原帖
本地跑过了洛谷跑不过
128388
星之哀伤楼主2021/10/17 16:32
#include<bits/stdc++.h>
using namespace std;
struct student{
	string xm;
	int a;
	int b;
	int c;
	int wuhu;
};
int main(){
	struct student q;
	int n;
	cin>>n;
	for(int i=0;i<=n;i++){
		cin>>q.xm>>q.a>>q.b;
		q.c=(q.a*0.7+q.b*0.3);
		if(q.a+q.b>140&&q.c>=80)
		cout<<"Excellent"<<endl;
		else cout<<"Not excellent"<<endl;
	}
	return 0;
}
2021/10/17 16:32
加载中...