HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


30. 50764 - Fast Typing Competition

Guest
• Review clarifications (1)

Volume problems

• 147. 50553 - Divisible by m
• 148. 50596 - Your Ride Is Here (US...
• 148. 50596 - Your Ride Is Here (US...
• 150. 50763 - Valid Password
• 151. 50560 - Max Distance
• 153. 50368 - Right-most non zero d...
• 155. 50379 - a^b modulus k
• 158. 50404 - Sum of Self Powers
• 30. 50764 - Fast Typing Competi...
• 50303 - Pattern
• 50882 - FizzBuzz
• 50308 - IT Knowledge Seminars
• 50320 - Random Sorted List
• 001. 50385 - From m to n
• 002. 50365 - Sum of the numbers f...
• 002. 50452 - Multiplication Table
• 003. 50387 - Passengers in the Train

Feedback

If you notice incorrect translations in Contester, please let author know.

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"


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

www.contester.ru