Challenge - #54 - Set .intersection() Operation
# Enter your code here. Read input from STDIN. Print output to STDOUT
eng = int(input())
eng_roll = set(map(int, input().split()))
french = int(input())
french_roll = set(map(int, input().split()))
print(len(eng_roll.intersection(french_roll)))
Comments
Post a Comment