Check Subset

  • + 0 comments

    for _ in range(int(input())): _ = int(input()) A = set(map(int, input().split())) _ = int(input()) B = set(map(int, input().split())) X = B.intersection(A) print(X == A)