You are viewing a single comment's thread. Return to all comments →
'''Try out with this one''' std_inp = input().split() str_array = input().split() set_a = set(input().split()) set_b = set(input().split()) happiness = 0
for i in str_array: if i in set_a: happiness += 1 elif i in set_b: happiness -= 1 else: continue 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 →
'''Try out with this one''' std_inp = input().split() str_array = input().split() set_a = set(input().split()) set_b = set(input().split()) happiness = 0
for i in str_array: if i in set_a: happiness += 1 elif i in set_b: happiness -= 1 else: continue print(happiness)