You are viewing a single comment's thread. Return to all comments →
n = int(input()) for _ in range(n): _ = input() a = set(input().split()) _ = input() b = set(input().split()) v = len(a) == len(a.intersection(b)) print(v)
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 →