小学生都能看懂的
2026-10-24 16:43:24
发布于:河南
6阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
//作者:大王老师
//
int main(){
int n,_id,x,score;
cin>>n;
bool is_gg = true;
for(int i=1;i<=n;i++){
cin>>_id;
cin>>x;
bool is_ak = true;
for(int j=1;j<=x;j++){
cin>>score;
if(score>=1900){
is_ak= false;
}
}
if(is_ak){
cout<<"I AK "<< _id<< '\n';
is_gg = false;
}
}
if(is_gg){
cout<<"GG\n";
}
return 0;
}
这里空空如也


有帮助,赞一个