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.
# Enter your code here. Read input from STDIN. Print output to STDOUTn=int(input())eng=input()eng={aforaineng.split()}m=int(input())fren=input()fren={bforbinfren.split()}eng.intersection_update(fren)print(len(eng))
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →