Check Strict Superset

  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    A=set(map(int,input().split()))
    n=int(input())
    c=True
    while n>0:
        B=set(map(int,input().split()))
        if A.union(B)!=A:
            c=False
            break
        n-=1
    print(c)