Check Subset

  • + 0 comments
    for i in range(int(input())):
        l_a, a, l_b, b =(
            input(), set(map(int, input().split())), 
            input(), set(map(int, input().split()))
        )
        print(a.issubset(b))