Check Strict Superset

  • + 0 comments
    setA = set(input().split())
    result = True
    
    for i in range(int(input())):
    
        setB = set(input().split())
        if not(setA.issuperset(setB)):
            result = False
        
    
    print(result)