You are viewing a single comment's thread. Return to all comments →
A oneliner:
n, m = map(int, input().split()) arr = list(map(int, input().split())) arr_a = set(map(int, input().split())) arr_b = set(map(int, input().split())) print(sum(1 if e in arr_a else -1 if e in arr_b else 0 for e in arr))
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 →
A oneliner: