//A1124
#include<iostream>
#include<map>
using namespace std;
int main(){
int m,n,s;
cin>>m>>n>>s;
map<string,int> mapp;
string name;
bool flag=true;
for(int i=1;i<=m;i++){
cin>>name;
if(i==s&&mapp[name]==1){
s=s+1;
}
if(i==s){
cout<<name<<endl;
mapp[name]=1;
s=s+n;
flag = false;
}
}
if(flag) cout<<"Keep going...";
return 0;
}
A1124
最新推荐文章于 2024-09-11 09:33:21 发布