You are viewing a single comment's thread. Return to all comments →
A=[] B=[] n, m = list(map(int, input().split())) for _ in range(n): word=input() A.append(word) for _ in range(m): word=input() if word in A: for i in range(len(A)): if word == A[i]: print(i+1, end=" ") else: print(-1,end=" ") print()
`
Seems like cookies are disabled on this browser, please enable them to open this website
DefaultDict Tutorial
You are viewing a single comment's thread. Return to all comments →
`