You are viewing a single comment's thread. Return to all comments →
T=int(input()) for i in range(T): n_A=int(input()) A=set(map(int,input().split())) n_B=int(input()) B=set(map(int,input().split())) print(A<=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 →
T=int(input()) for i in range(T):
n_A=int(input())
A=set(map(int,input().split())) n_B=int(input()) B=set(map(int,input().split())) print(A<=B)