Check Strict Superset

  • + 0 comments
    A=set(input().split())
    n=int(input())
    temp = []
    for i in range(n):
        B=set(input().split())
        if (A.issuperset(B)):
            temp.append("True")
        else:
            temp.append("False")
    if "False" in temp:
        print("False")
    else:
        print("True")