Check Subset

  • + 0 comments
    T = int(input())
    for _ in range(T):
        NUMA, SETA = int(input()), set(map(int, input().split()))
        NUMB, SETB = int(input()), set(map(int, input().split()))
        print(SETA <= SETB)