Check Subset

  • + 0 comments
    T = int(input())
    for i in range(T):
        n = input().split()
        A = set(map(int, input().split()))
        N = input().split()
        B = set(map(int, input().split()))
        if A.intersection(B) == A:
            print('True')
        else:
            print('False')