You are viewing a single comment's thread. Return to all comments →
# Enter your code here. Read input from STDIN. Print output to STDOUT
t = int(input())
for _ in range(t): set_a_size = int(input()) set_a = set(map(int,input().split()))
cand_size = int(input()) cand_set = set(map(int,input().split())) print(set_a.issubset(cand_set))
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 →
# Enter your code here. Read input from STDIN. Print output to STDOUT
t = int(input())
for _ in range(t): set_a_size = int(input()) set_a = set(map(int,input().split()))