Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Question by Ibrahim Mesecan.
Fast Typing Competition
Tirana North Park secondary school is organizing
a fast typing contest. The students are given
a text but they are asked to type every word
in reverse letter order. You are asked write a program
to find out how many mistakes they had.
Question: Write a program that is
going to read the original text and student text.
In the end, your program is going to show how many
words that they have written incorrectly.
Note: You compare the words
according to the given order.
Input specification
You will be given an integer (n) in the first line:
the number of lines where 1 ≤ n ≤ 100.
Then in the following n lines, you will be given a
text which has been given to the student. The text contain
only 10 numeric digits, 26 English letters and space char.
And, every line contains at most 250 chars.
Then, the following n lines contain the text
typed by the student.
Output specification
Show one integer: the total number of words
written improperly.
Sample Input I
2
The contest organization committee
They want to form k equal level groups
ehT tsetnc noitazinagro eettimmoc
yehT tnow ot mrof k lauqe level spuorg
|
Sample Output I
2
|
Explanation:
The student has written 2 words incorrectly:
- The word "contest" has been written as
"tsetnc" ('o' letter is missing)
- The word "want" has been written as "tnow"
Для отправки решений необходимо выполнить вход.
|