You are viewing a single comment's thread. Return to all comments →
import sys lines = sys.stdin.readlines() T = int(lines[0]) for i in range(T): A, B = set(map(int, lines[4 * i + 2].split())), set(map(int, lines[4 * i + 4].split())) print(A.issubset(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 →