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.
order=set(map(int,input().split()))
array=(map(int,input().split()))
a=set(map(int,input().split()))
b=set(map(int,input().split()))
res=0
if a.isdisjoint(b):
for i in array:
if i in a:
res+=1
if i in b:
res-=1
print(res)
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 →
order=set(map(int,input().split())) array=(map(int,input().split())) a=set(map(int,input().split())) b=set(map(int,input().split())) res=0 if a.isdisjoint(b): for i in array: if i in a: res+=1 if i in b: res-=1 print(res)