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