Check Strict Superset

Sort by

recency

|

1168 Discussions

|

  • + 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")
    
  • + 0 comments

    print((lambda s : all(s > e for e in (set(map(int, input().split())) for _ in range(int(input())))))(set(map(int, input().split()))))

  • + 0 comments
    A = set(map(int,input().split()))
    print(all(A.issuperset(B:=set(map(int,input().split()))) and A!=B for _ in range(int(input()))))
    
  • + 0 comments
    A,n=set(map(int,input().split())),int(input())
    subset_list=[ set(map(int,input().split())) for i in range(n)]
    D=set()
    chk_flag=True
    for B in subset_list:
        if A.intersection(B)==B and A-B!=D:
            continue
        else:
            chk_flag=False
            break
    
    print(chk_flag)``
    
  • + 0 comments

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

    is_superset = all(A > set(map(int,input().split())) for _ in range(N))

    print(is_superset)