Challenge - #54 - Set .intersection() Operation

# Enter your code here. Read input from STDIN. Print output to STDOUT
eng = int(input())
eng_roll = set(map(intinput().split()))

french = int(input())
french_roll = set(map(intinput().split()))

print(len(eng_roll.intersection(french_roll)))

Comments

Popular posts from this blog

Challenge - #48 - Incorrect Regex

Challenge - #43 - Time Delta