Sample Input 1:
9 3 2
Imgonnawin!
PickMe
PickMeMeMeee
LookHere
Imgonnawin!
TryAgainAgain
TryAgainAgain
Imgonnawin!
TryAgainAgain
Sample Output 1:
PickMe
Imgonnawin!
TryAgainAgain
Sample Input 2:
2 3 5
Imgonnawin!
PickMe
Sample Output 2:
Keep going…
解法
m, n, s = [int(i) for i in input().split()]
ws = []
idx = s
#flag = False
for i in range(m):
name = input()
if (i+1) == idx:
if name not in ws:
ws.append(name)
idx += n
else:
idx += 1
if ws == []:
print("Keep going...")
else:
for w in ws:
print(w)