We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
List comprehensions can do this easily, esp when you leverage that True == 1 and False == 0:
n, m = raw_input().split()
sc_ar = raw_input().split()
A = set(raw_input().split())
B = set(raw_input().split())
print sum([(i in A) - (i in B) for i in sc_ar])
No Idea!
You are viewing a single comment's thread. Return to all comments →
List comprehensions can do this easily, esp when you leverage that True == 1 and False == 0: