You are viewing a single comment's thread. Return to all comments →
from collections import Counter arrL,setL = input().split() arr = input().split() setA = set(input().split()) setB = set(input().split()) happy = 0 coun = Counter(arr) for i in setA: happy += coun[i] for i in setB: happy -= coun[i] print(happy)
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 →