给个赞
2025-09-24 14:58:18
发布于:浙江
3阅读
0回复
0点赞
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
bool hasAK = false; // 标记是否有比赛AK
for (int i = 0; i < n; ++i) {
int id, x;
cin >> id >> x;
vector<int> scores(x);
bool canAK = true; // 标记当前比赛是否可以AK
for (int j = 0; j < x; ++j) {
cin >> scores[j];
if (scores[j] >= 1900) {
canAK = false; // 只要有一个题目>=1900就不能AK
}
}
if (canAK) {
cout << "I AK " << id << '\n';
hasAK = true;
}
}
if (!hasAK) {
cout << "GG\n";
}
return 0;
}
这里空空如也
有帮助,赞一个