ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Фёдор Меньшиков. Тренировки > задача:


30. 50764 - Fast Typing Competition

Гость
• Вопросы к жюри (1)

Задачи сборника

• 148. 50596 - Udhetimi juaj eshte ketu
• 150. 50763 - Valid Password
• 151. 50560 - Distanca maksimale
• 153. 50368 - Right-most non zero d...
• 155. 50379 - a^b modulus k
• 158. 50404 - Sum of Self Powers
• 160. Cmimi Mesatar i Karburantit
• 180. 50343 - The number of Ending...
• 30. 50764 - Fast Typing Competi...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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"


Для отправки решений необходимо выполнить вход.

www.contester.ru