From a1ce1cbf6985725bad3ae6aa855b26b32918efe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaan=20Ar=C4=B1?= Date: Thu, 28 Oct 2021 12:52:24 +0300 Subject: [PATCH] Create NoIdea.py --- NoIdea.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 NoIdea.py diff --git a/NoIdea.py b/NoIdea.py new file mode 100644 index 0000000..0db14e8 --- /dev/null +++ b/NoIdea.py @@ -0,0 +1,37 @@ +# Enter your code here. Read input from STDIN. Print output to STDOUT + +n,m = tuple(map(int,input().split())) +arr = list(map(int,input().split())) +likes = set(map(int,input().split())) +dislikes = set(map(int,input().split())) + +posPoint = likes.intersection(arr) +negPoint = dislikes.intersection(arr) + +finalPoint = 0 + +for i in arr: + if i in posPoint: + finalPoint += 1 + elif i in negPoint: + finalPoint -= 1 + +print(finalPoint)# Enter your code here. Read input from STDIN. Print output to STDOUT + +n,m = tuple(map(int,input().split())) +arr = list(map(int,input().split())) +likes = set(map(int,input().split())) +dislikes = set(map(int,input().split())) + +posPoint = likes.intersection(arr) +negPoint = dislikes.intersection(arr) + +finalPoint = 0 + +for i in arr: + if i in posPoint: + finalPoint += 1 + elif i in negPoint: + finalPoint -= 1 + +print(finalPoint)