求大佬看看,最后一个wa了
查看原帖
求大佬看看,最后一个wa了
1068299
ice_moon_soul楼主2023/10/7 19:05
#include <iostream>
#include <algorithm>

using namespace std;

struct stu
{
	int id;
	double xy;
	double st;
}a[100010];



int main()
{
	int z = 0;
	cin >> z;
	for (int j = 0; j < z; j++)
	{
		cin >> a[j].id >> a[j].xy >> a[j].st;
		if ((a[j].xy + a[j].st) > 140 && (a[j].xy * 7 + a[j].st * 3) > 800)
		{
			cout << "Excellent" << endl;
		}
		else
			cout << "Not excellent" << endl;
	}

	return 0;
}
2023/10/7 19:05
加载中...