样例过,为什么0分
查看原帖
样例过,为什么0分
778382
wch666楼主2023/7/4 19:10
#include<bits/stdc++.h>
using namespace std;
double yxdy(int x,int y)
{
	if(x*7+y*3 > 800 && x+y > 140)
		return true;
	else
		return false;
}
int a[1001],b[1001],c[1001],n;
int main()
{
	cin>>n;
	for(int i=0; i<n; i++)
	{
		cin>>a[i]>>b[i]>>c[i];
		if(yxdy(b[i],c[i]))
			cout<<"Excellent"<<endl;
		else
			cout<<"No excellent"<<endl;
	}
	return 0;
}

2023/7/4 19:10
加载中...