From 5860711e95d640d511dc4c5501c11899d892085d Mon Sep 17 00:00:00 2001 From: pm bhatiya <61078575+pmbhatiya@users.noreply.github.com> Date: Tue, 21 Apr 2020 08:36:26 +0530 Subject: [PATCH] Add files via upload --- Check Strict Superset.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Check Strict Superset.py diff --git a/Check Strict Superset.py b/Check Strict Superset.py new file mode 100644 index 0000000..19d1d3e --- /dev/null +++ b/Check Strict Superset.py @@ -0,0 +1,14 @@ +# Python Check Strict Superset HackerRank solution + +set_my=set(map(int,input().split())) +N=int(input()) + +flag=0 +for i in range(N): + set_check=set(map(int,input().split())) + if set_my.issuperset(set_check)==False: + print("False") + flag=1 + break +if flag==0: + print("True")