Check Strict Superset

  • + 0 comments

    A=set(map(int,input().split())) n=int(input())

    for _ in range(n): b=set(map(int,input().split())) if b.difference(A): print(False) break else: if A==A.intersection(b): print(False) break else: print(True)