P5742 【深基7.例11】评等级
查看原帖
P5742 【深基7.例11】评等级
1595861
Xiao7ING楼主2024/12/10 22:14
#include<iostream>
#include<cstring>
using namespace std;
    struct stu{
	string name;
	double a,b;
	double score;
};
int main(){
	 stu st[99];
	 int n;
	 cin>> n ;
	 for(int i=0;i<n;i++){
	 	cin>>st[i].name>>st[i].a>>st[i].b;
	 	st[i].score=st[i].a+st[i].b;}
	 	for(int j=0;j<n;j++){
	 	if(st[j].score>140&&st[j].a*7+st[j].b*3>=800)
	 	cout<<"Excellent"<<endl;
		 else
		 cout<<"Not excellent"<<endl;
		 }
	return 0;
}```
全re.........
2024/12/10 22:14
加载中...