You are viewing a single comment's thread. Return to all comments →
super_set = set(map(int,input().split()))
number = int(input())
truth_val = []
for i in range(number): sets = set(map(int,input().split())) truth_val.append(super_set.issuperset(sets))
if False in truth_val: print(False) else: print(True)
Seems like cookies are disabled on this browser, please enable them to open this website
Check Strict Superset
You are viewing a single comment's thread. Return to all comments →
super_set = set(map(int,input().split()))
number = int(input())
truth_val = []
for i in range(number): sets = set(map(int,input().split())) truth_val.append(super_set.issuperset(sets))
if False in truth_val: print(False) else: print(True)