You are viewing a single comment's thread. Return to all comments →
n=int(input())
for _ in range(n): a=int(input()) set_a=set(map(int,input().split()))
b=int(input()) set_b=set(map(int,input().split())) if set_a.issubset(set_b): print("True") else: print("False")
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 →
n=int(input())
for _ in range(n): a=int(input()) set_a=set(map(int,input().split()))