HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Array_and_Matrices > problem:


50214 - Birthday Celebration

Volume problems

• 50196 - Marathon
• 50205 - Secret Number
• 50206 - Club Presidency
• 50207 - Parking Place
• 50208 - Area of Triangle Revised
• 50209 - Number of Student Certificates
• 50210 - The largest Student Group
• 50212 - Buy the cheapest
• 50214 - Birthday Celebration
• 50215 - ZScore normalization
• 50216 - Top M Grades
• 50244 - Manhattan Distance
• 50245 - Trip to Korca
• 50249 - War Of Battleships
• 50252 - Selling Cars
• 50255 - Gaussian Elimination
• 50256 - Top popular m-students

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.

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