You are viewing a single comment's thread. Return to all comments →
n_and_m = input().split() n = n_and_m[0] m = n_and_m[1] arr = map(int, input().split()) set_a = set(map(int, input().split())) set_b = set(map(int, input().split())) happiness = 0 for i in arr: if i in set_a: happiness +=1 if i in set_b: happiness-=1 print(happiness)
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 →