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 Strict Superset
- Discussions
Check Strict Superset
Check Strict Superset
Sort by
recency
|
1166 Discussions
|
Please Login in order to post a comment
A= set(map(int, input().split())) N= int(input())
is_superset = all(A > set(map(int,input().split())) for _ in range(N))
print(is_superset)
Master_set = set(map(int,input().split())) N = int(input()) count = 0 for i in range(N): other_set = set(map(int,input().split())) if Master_set >= other_set: count += 1 if count == N: print("True") else: print("False")