Check Subset

  • + 0 comments

    Here's my code:

    for _ in range(int(input())):
        al = int(input())
        a = set(list(map(int, input().split()))[:al])
        bl = int(input())
        b = set(list(map(int, input().split()))[:bl])
        print(a.issubset(b))