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
|
1133 Discussions
|
Please Login in order to post a comment
` _set = set(map(int, input().split()))
print(all([set(map(int, input().split())) <= _set for _ in range(int(input()))])) `
set_a = set(map(int, input().split())) n = int(input())
for _ in range(n): set_n = set(map(int, input().split()))
else: # If set_a is a strict superset of all sets, print True print(True)
For Python3