Check Strict Superset

  • + 0 comments
    set_a = set(input().split())
    n = int(input())
    x = 0
    
    for i in range(n):
        set_b = set(input().split())
        if set_a.issuperset(set_b):
            x += 1
    
    if x ==n:
        print("True")
    else:
        print("False")