社区讨论
求大佬看看,最后一个wa了
P5742【深基7.例11】评等级参与者 3已保存回复 4
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 4 条
- 当前快照
- 1 份
- 快照标识符
- @lo15fd2e
- 此快照首次捕获于
- 2023/10/22 15:30 2 年前
- 此快照最后确认于
- 2023/11/02 15:02 2 年前
CPP
#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;
}
回复
共 4 条回复,欢迎继续交流。
正在加载回复...