HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Strings > problem:


50764 - Fast Typing Competition

Guest
• Review clarifications (1)

Section problems

• 50258 - String manipulations
• 50264 - String Multiplication
• 50429 - Secret Message
• 50484 - Number Of Letters
• 50511 - Class Average
• 50502 - Welcome Andi - 1
• 50503 - Welcome Andi - 2
• 50926 - School Mail Merge
• 50764 - Fast Typing Competition
• 50533 - Contacts List
• 50763 - Valid Password
• 50596 - Your Ride Is Here (USACO)
• 50596 - Your Ride Is Here (USACO)
• 50759 - Text Statistics
• 50307 - Palindromes
• 50769 - Arithmetic expression
• 50315 - Pig Latin

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