You are viewing a single comment's thread. Return to all 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))
Seems like cookies are disabled on this browser, please enable them to open this website
Check Subset
You are viewing a single comment's thread. Return to all comments →
Here's my code: