Check Subset

  • + 0 comments

    # Enter your code here. Read input from STDIN. Print output to STDOUT

    t = int(input())

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

    cand_size = int(input())
    cand_set = set(map(int,input().split()))
    
    print(set_a.issubset(cand_set))