Check Subset

  • + 0 comments

    Solution without using .issubset()

    case = int(input())
    
    for i in range(case):
        numA = int(input())
        setA = set(list(map(int, input().split())))
        
        numB = int(input())
        setB = set(list(map(int, input().split())))
        
        print(len(setA - setB)==0)