Check Subset

  • + 0 comments
    t = int(input())
    def interss(a,b):
        r = True
        for i in a:
            if i in b:
               pass
            else:
               r = False
        print(r)
    for i in range(t):
        al= int(input())
        a_item = list(input().split())
        bl = int(input())
        b_item = list(input().split())
        ff = interss(a_item,b_item)