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.
if name == 'main':
sizeArray, sizesAB = input().split()
my_array = input().split()
setA= set(input().split())
setB = set(input().split())
print(len([char for char in my_array if char in setA])-len([char for char in my_array if char in setB]))
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 →
if name == 'main': sizeArray, sizesAB = input().split() my_array = input().split() setA= set(input().split()) setB = set(input().split()) print(len([char for char in my_array if char in setA])-len([char for char in my_array if char in setB]))