Check Subset

  • + 0 comments

    For Python3 Platform

    T = int(input())
    
    for _ in range(T):
        Na = int(input())
        A = set(map(int, input().split()))
        Nb = int(input())
        B = set(map(int, input().split()))
        
        print(A.issubset(B))