MWC '15 #5 P3: French WordsView as PDF
Salarios77 and AndrewNitu are under suspicion of plagiarism, a serious crime at William Lyon Mackenzie CI. They were supposed to complete a project involving writing French words on a piece of paper in alphabetical order and present their definitions to the class. To see if they truly plagiarized, you are to write a program to determine how many words they share in common.
First line consists of and separated by a space (, number of words on Salarios77's and AndrewNitu's respective projects), followed by spaced strings on the second line, followed by spaced strings on the third line.
Output the number of words they share in common.
4 4 a b c d b c z zz