Check Subset

  • + 0 comments

    can be done by checking on subset length:

    n = int(input())
    
    for i in range(0, n):
        n_a, a = int(input()), set(input().split())
        n_b, b = int(input()), set(input().split())
        subset = a - b
        print(len(subset) == 0)