You are viewing a single comment's thread. Return to all comments →
n,m = tuple(map(int, input().split(" "))) n_arr = list(map(int, input().split(" "))) m_a_arr = set(map(int, input().split(" "))) m_b_arr = set(map(int, input().split(" "))) happyness = 0 for i in n_arr: happyness+= (i in m_a_arr) - (i in m_b_arr) print(happyness)
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 →
Python 3