Check Subset

  • + 0 comments

    I don't know why are people complicating this task in the discussions. This code successfully satisfies all the criterias and uses the set methods well.

    for i in range(int(input())):
      elements_A = int(input())
      A = set(map(int, input().split()))
      elements_B = int(input())
      B = set(map(int, input().split()))
      
      print(A.issubset(B))