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
|
1138 Discussions
|
Please Login in order to post a comment
I did it like this:
A = set(input().split()) n = int(input()) ans = True for i in range(n): otherset = set(input().split()) if ( not A.issuperset(otherset)): ans = False break print(ans)
d=True a=set(map(int,input().split())) if len(a) >0 and len(a) <501: b=int(input()) if b>0 and b<21: for i in range(b): c=set(map(int,input().split())) if len(c)>0 and len(c)<101: if not a.issuperset(c): d=False break
print(d)
Ahha-ha! funny language
`