Check Subset

  • [deleted]Challenge Author
    + 0 comments

    For Python3

    T = int(input())
    
    for i in range(T):
        a = int(input())
        A = set(input().split())
        b = int(input())
        B = set(input().split())
        
        print(A.issubset(B))