Skip to content

Instantly share code, notes, and snippets.

@amulyakashyap09
Created December 31, 2017 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amulyakashyap09/a3c534b494cbdce8dea17fb020a9ce8d to your computer and use it in GitHub Desktop.
Save amulyakashyap09/a3c534b494cbdce8dea17fb020a9ce8d to your computer and use it in GitHub Desktop.
No Idea!
(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