Check Subset

  • + 0 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))