We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Sets
- Check Subset
- Discussions
Check Subset
Check Subset
Sort by
recency
|
956 Discussions
|
Please Login in order to post a comment
T=int(input()) for i in range(T):
n_A=int(input())
A=set(map(int,input().split())) n_B=int(input()) B=set(map(int,input().split())) print(A<=B)
if name == 'main': n = int(input()) ans = [] for _ in range(n): n_A = int(input()) A = set(map(int, input().split()))
For Python3 Platform