You are viewing a single comment's thread. Return to all comments →
number_of_test_case = int(input())
for _ in range(number_of_test_case): A_number_elements = int(input()) space_separated_elements_A = set(map(int,input().split()))
B_number_elements = int(input()) space_separated_elements_B = set(map(int,input().split())) if space_separated_elements_A <= space_separated_elements_B: print("True") elif not space_separated_elements_A <= space_separated_elements_B: 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 →
number_of_test_case = int(input())
for _ in range(number_of_test_case): A_number_elements = int(input()) space_separated_elements_A = set(map(int,input().split()))