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.
for _ in range(n):
b=set(map(int,input().split()))
if b.difference(A):
print(False)
break
else:
if A==A.intersection(b):
print(False)
break
else:
print(True)
Check Strict Superset
You are viewing a single comment's thread. Return to all comments →
A=set(map(int,input().split())) n=int(input())
for _ in range(n): b=set(map(int,input().split())) if b.difference(A): print(False) break else: if A==A.intersection(b): print(False) break else: print(True)