Created
December 31, 2017 15:24
-
-
Save amulyakashyap09/a3c534b494cbdce8dea17fb020a9ce8d to your computer and use it in GitHub Desktop.
No Idea!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(n, m) = map(int, input().split()) #take input in n , m | |
h=0; | |
a = map(int, input().split())#take array as input | |
A = set(map(int, input().split())) #take array as input and create SET | |
B = set(map(int, input().split()))#take array as input and create SET | |
for el in a: | |
if el in A: | |
h += 1 | |
elif el in B: | |
h -= 1 | |
print(h) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment