You are viewing a single comment's thread. Return to all comments →
def main(): A = set(map(int, input().split())) s = set() n = int(input()) for _ in range(n): B = set(map(int, input().split())) s.update(B) is_super_set = True for i in s: if i not in A: is_super_set = False print(is_super_set) if __name__ == "__main__": main()
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 →