HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Search > problem:


50437 - Age Labeling

Guest
• Review clarifications (1)

Section problems

• 50460 - Median of 3 Numbers
• 50566 - Grade Point Average (GPA)
• 50573 - Count and Sum
• 50575 - Number of Prime numbers
• 50576 - Number of Perfect numbers
• 50588 - Processing the list of numbers
• 50547 - Close Pair
• 50238 - The smallest number
• 50437 - Age Labeling
• 50457 - The Number of Winners
• 50478 - Letter Grades
• 50782 - Max of N integers
• 50552 - Casual shoes
• 50562 - List of students
• 50570 - Prime numbers in the seg...
• 50586 - Prime Palindromes
• 50783 - The smallest number

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 Erisa Terolli.

Age Labeling

A chocolate company is going to make a survey and find out the number of people from different age ranges who buy their products. The age ranges are as follows:

  • 0 - 10 years old
  • 11 - 20 years old
  • 21 - 30 years old
  • Over 30 years old

Question:
Write a program that takes the ages of n people (customers of chocolate company) and print the number of people for each age range.

Input specification
First you will be given an integer number (n) where 1 ≤ n ≤ 100. The in the following n lines you will be given the ages of n people.

Output specification
Print a list of 4 integers that indicate number of people from each age range.

 Sample Input I   
 5
 5
 12
 15
 23
 30
 Sample Output I   
 1 2 2 0


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

www.contester.ru