tjtj
2025-09-21 20:11:32
发布于:福建
1阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
bool hasAK = false;
for (int i = 0; i < n; ++i) {
int id, x;
cin >> id >> x;
bool canAK = true;
for (int j = 0; j < x; ++j) {
int score;
cin >> score;
if (score >= 1900) {
canAK = false;
for (int k = j + 1; k < x; ++k) {
cin >> score;
}
break;
}
}
if (canAK) {
cout << "I AK " << id << '\n';
hasAK = true;
}
}
if (!hasAK) {
cout << "GG\n";
}
return 0;
}
这里空空如也
有帮助,赞一个