Check Strict Superset
-
Practice>Python>Sets>Check Strict Supersethackerrank.com 2019. 3. 9. 05:30
hackerrank.comCheck Strict SupersetProblem link : https://www.hackerrank.com/challenges/py-check-strict-superset/problemDifficulty : Easy TipWe can use difference(), however, there is a method to check that it is super setissuperset()Solution A = set(input().split(' ')) def d(): cnt = int(input()) for _ in range(cnt): B = set(input().split(' ')) if A.issuperset(B) is False: return False return T..