Check Subset

  • + 0 comments

    if name == "main":

    def Action(T):
    
        for _ in range (T):
    
            length_A = int(input())
            A = set(map(int, input().split()))
    
            length_B = int(input())
            B = set(map(int, input().split()))
    
            print(A.issubset(B))
    
    T = int(input())
    Action(T)