You are viewing a single comment's thread. Return to all comments →
n,m = map(int, input().split()) list1 = list(map(int, input().split())) set1 = set(map(int, input().split())) set2 = set(map(int, input().split())) happ = 0
happ = sum((i in set1) - (i in set2) for i in list1)
print(happ)
Seems like cookies are disabled on this browser, please enable them to open this website
No Idea!
You are viewing a single comment's thread. Return to all comments →
n,m = map(int, input().split()) list1 = list(map(int, input().split())) set1 = set(map(int, input().split())) set2 = set(map(int, input().split())) happ = 0
happ = sum((i in set1) - (i in set2) for i in list1)
print(happ)