Check Subset

  • + 0 comments
    t = int(input())
    
    for i in range(t):
        nA = input()
        setA = set(input().split())
    
        nB = input()
        setB = set(input().split())
        
        print(setA.issubset(setB))