Check Strict Superset

  • + 0 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)