You are viewing a single comment's thread. Return to all comments →
from collections import Counter _, arr, a, b = [input().split() for _ in range(4)] ainter = set(arr).intersection(set(a)) binter = set(arr).intersection(set(b)) carr = Counter(arr) pls = sum([carr[i] for i in ainter]) minus = sum([carr[i] for i in binter]) print(pls - minus)
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 →