You are viewing a single comment's thread. Return to all comments →
T = int(input()) for _ in range(T): _ = int(input()) A = set(map(int, input().split())) _ = int(input()) B = set(map(int, input().split())) print(A.issubset(B))
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 →