大佬们,代码如下:
n,m = map(int,input().split()) data = input().split() for i in input().split(): print(data[int(i)-1])