Check Strict Superset

  • + 0 comments

    I did it like this:

    # Enter your code here. Read input from STDIN. Print output to STDOUT
    
    A = set(map(int, input().split()))
    T = int(input())
    
    is_superset = True
    for i in range(T):
        B = set(map(int, input().split()))
        if not A.issuperset(B):
            is_superset =False
            break
    print(is_superset)