No Idea! | HackerRank solution in python

n,m = (int(i) for i in input().split())
l=map(int,(input().strip().split(' ')))
a=set(map(int,input().strip().split(' ')))
b=set(map(int, input().strip().split(' ')))
result=0
for i in l:
    if i in a:
        result+=1
    if i in b:
        result+=-1
print(result)

Comments

Popular posts from this blog

13 Reasons Why !!!!

Dedicated to you

Guitar Chords of Timilai - JPT ROCKERZ