You are viewing a single comment's thread. Return to all comments →
import sys lines = sys.stdin.readlines() A, n = set(map(int, lines[0].split())), int(lines[1]) print(all([A.issuperset(set(map(int, lines[2 + i].split()))) for i in range(n)]))
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 →