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)