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