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