钻个空子,大佬勿喷
while True:
try :
n = int(input().strip())
m = input().strip().split()
k = int(input().strip())
m.append('0')
print(''.join(i for i in m[::-1][k]))
except :
break

钻个空子,大佬勿喷
while True:
try :
n = int(input().strip())
m = input().strip().split()
k = int(input().strip())
m.append('0')
print(''.join(i for i in m[::-1][k]))
except :
break