社区讨论
80分求助
P5742【深基7.例11】评等级参与者 2已保存回复 3
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 3 条
- 当前快照
- 1 份
- 快照标识符
- @lw2y4y15
- 此快照首次捕获于
- 2024/05/12 10:59 2 年前
- 此快照最后确认于
- 2024/05/12 14:13 2 年前
CPP
#include<bits/stdc++.h>
#define LL long long
#define F(x,y,z) for(int i=x;i<=y;i+=z)
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
int n,num[1005];
double study[1005],other[1005];
cin>>n;
F(1,n,1)
{
cin>>num[i]>>study[i]>>other[i];
}
F(1,n,1)
{
if(study[i]*0.7+other[i]*0.3>=80.0&&study[i]+other[i]>140.0&&study[i]*7+other[i]*3>=800.0)
{
cout<<"Excellent"<<'\n';
}
else
{
cout<<"Not excellent"<<'\n';
}
}
return 0;
}
回复
共 3 条回复,欢迎继续交流。
正在加载回复...