You are viewing a single comment's thread. Return to all comments →
for _ in range(int(input())): _,A = int(input()) , set(map(int,input().split())) _,B = int(input()) , set(map(int,input().split())) print(A.issubset(B)) # Alternative : print(A&B == A)
Seems like cookies are disabled on this browser, please enable them to open this website
Check Subset
You are viewing a single comment's thread. Return to all comments →