You are viewing a single comment's thread. Return to all comments →
my simple python3 approach passes all test casses:
a=input().split(' ') l=([int(i) for i in input().split(' ')]) firstset=set([int(i) for i in input().split(' ')]) secondset=set([int(i) for i in input().split(' ')]) p=0 for i in l: if i in firstset: p+=1 if i in secondset: p-=1 print(p)
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 →
my simple python3 approach passes all test casses: