Check Subset

  • + 0 comments

    n=int(input())

    for _ in range(n): a=int(input()) set_a=set(map(int,input().split()))

    b=int(input())
    set_b=set(map(int,input().split()))
    
    if set_a.issubset(set_b):
        print("True")
    else:
        print("False")