Check Subset

  • + 0 comments

    For Python3 Platform

    T = int(input())
    for _ 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.issubset(B))