Check Subset

  • + 0 comments
    n_T = int(input())
    
    for i in range (0,n_T):
        c_A = int(input())
        set_A = set(input().split())
        
        c_B = int(input())
        set_B = set(input().split())
        
        if (set_A == set_A & set_B):
            print("True")
        else:
            print("False")