We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
# Enter your code here. Read input from STDIN. Print output to STDOUTlen_a,len_b=input().split()a,b=list(),list()foriinrange(int(len_a)+int(len_b)):ifi<int(len_a):a.append(input())else:b=input()out=""forjinrange(len(a)):ifb==a[j]:out+=str(j+1)+" "ifbnotina:out="-1"print(out)
DefaultDict Tutorial
You are viewing a single comment's thread. Return to all comments →