Check Subset

  • + 0 comments
    for _ in range(int(input())):
        _, a = input(), set(map(int, input().split()))
        _, b = input(), set(map(int, input().split()))
        
        if a - b:
            print("False")
        else:
            print("True")