简单题,理清思路
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <string>
#include <cctype>
#include <vector>
#include <cstring>
#include <set>
#include <map>
using namespace std;
int n,m,s;
int main()
{
cin >> m >> n >> s;
map<string,int> get;
if(m<s){
cout << "Keep going..." << endl;
return 0;
}
int now = 0;
for(int i=1; i<=m; i++){
string a;
cin >> a;
//cout << a << " input " << i << endl;
if(i<s) continue;
else{
if(i==s){
cout << a << endl;
now = i;
get[a] = 1;
}
else {
//cout << now+n << " da " << i << endl;
if(i == now+n){
if(get[a]!=1){
cout << a << endl;
get[a] = 1;
now = i;
//cout << now; << " nn " << endl;
}
else now = now+1;
}
}
}
}
return 0;
}
臭猪就知道说我,也不知道说点好听的