Check Strict Superset

  • + 0 comments
    set_A = set(map(int,input().split()))
    n = int(input())
    res = []
    for _ in range(n):
        set_B = set(map(int,input().split()))
        flag = set_A.issuperset(set_B)
        res.append(flag)
    print(all(res))