Check Subset

  • + 0 comments

    t = int(input()) for i in range(t): a = int(input()) a_set = set(map(int, input().split())) b = int(input()) b_set = set(map(int, input().split())) if a_set&b_set == a_set: print(True) else: print(False)