Check Strict Superset

Sort by

recency

|

1121 Discussions

|

  • + 0 comments

    a=set(input().split()) n=int(input()) for i in range(n): b=set(input().split()) if(b.issuperset(a)): print ("True") else: print("False") this is my code

  • + 0 comments
    set_a = set(input().split())
    n = int(input())
    x = 0
    
    for i in range(n):
        set_b = set(input().split())
        if set_a.issuperset(set_b):
            x += 1
    
    if x ==n:
        print("True")
    else:
        print("False")
    
  • + 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)
    
  • + 0 comments

    Here's my code:

    a = set(map(int, input().split()))
    print(all([a.issuperset(set(map(int, input().split()))) for _ in range(int(input()))]))
    
  • + 0 comments

    super_set = set(map(int,input().split()))

    number = int(input())

    truth_val = []

    for i in range(number): sets = set(map(int,input().split())) truth_val.append(super_set.issuperset(sets))

    if False in truth_val: print(False) else: print(True)