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

Сборники > Kovrov IT > задача:


50869 - Birthday Celebration

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

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

• 50785 - Swimming Contest
• 51011 - Decoding the Path
• 50515 - Lines - Revisited
• 50999 - Overlapping Trips
• 50507 - Sequential Numbers
• 50449 - The biggest result
• 50434 - Row Min Subtraction
• 50442 - Polynomial Addition
• 50869 - Birthday Celebration
• 50870 - ZScore normalization
• 50513 - Climbing Up the Stairs
• 50821 - Derivative of an array
• 50854 - Area of Triangle Revised
• 50520 - Filling a Matrix Randomly
• 51019 - Finding the hidden message
• 50497 - Falling Bricks - Revisited
• 51002 - The most successful classes

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Birthday Celebration

Question: The director of North West Durres primary school wants a special program from you. He has the birthdays of students in a file. Whenever he gives a month, he wants to see the number of students who was born on the given month.

Input specification
You will be first given a number (n) the number of students where 0 ≤ n ≤ 5000. Then in the following n lines, you will be given names and birthdays for n students. The last line contains the searching month.

Output specification:
Show the number of students who was born in the given month. Print 0 (zero), if there is no one.

Sample Input I
10
Kelly 4 Aug 2005
Tamara 10 Jan 2006
Jeffrey 8 Jul 2005
Edwin 13 Apr 2006
Terence 12 Sep 2006
Amos 19 May 2006
Wayne 7 Oct 2006
Rafael 6 Mar 2006
Hubert 25 Jul 2005
Carmen 14 Jan 2006
Oct
Sample Output I
1



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

www.contester.ru