Check Subset

  • + 0 comments

    test_cases = int(input())

    for _ in range(test_cases):

    elements_a = int(input())

    set_a = set(map(int, input().split()))

    elements_b = int(input())

    set_b = set(map(int, input().split()))

    print(set_a.issubset(set_b))