We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
''' Easy Method
n, m = map(int, input().split())
array = list(map(int, input().split()))
A = set(map(int, input().split()))
B = set(map(int, input().split()))
happiness_score = 0
for num in array:
if num in A:
happiness_score+=1
if num in B:
happiness_score-=1
print(happiness_score)'''
Cookie support is required to access HackerRank
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 →
''' Easy Method n, m = map(int, input().split()) array = list(map(int, input().split())) A = set(map(int, input().split())) B = set(map(int, input().split()))
happiness_score = 0
for num in array: if num in A: happiness_score+=1 if num in B: happiness_score-=1
print(happiness_score)'''