You are viewing a single comment's thread. Return to all comments →
size = map(int,input().split(" ")) arr = map(int,input().split()) Happy = map(int, input().split(" ")) Sad = map(int, input().split(" "))`` Happy_set = set(Happy) Sad_set = set(Sad) Happiness = 0 for i in arr: if i in Happy_set: Happiness += 1 elif i in Sad_set: 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 →