Check Strict Superset

  • [deleted]Challenge Author
    + 0 comments

    For Python3

    A = set(input().split())
    n = int(input())
    for i in range(n):
        s = set(input().split())
        
        if(len(s) == len(A)):
            print(False)
            break
        elif(not A.issuperset(s)):
            print(False)
            break
    else:
        print(True)