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

Разделы > Поиск > задача:


50437 - Age Labeling

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

Задачи раздела

• 51059 - Football teams
• 51058 - Third grade students
• 51060 - Public Transportation
• 50483 - Group Total
• 50331 - Number of Numbers over A...
• Raporti Javor
• 50861 - The largest Student Group
• 50815 - Breaking the Bunker
• 50437 - Age Labeling
• 50500 - Find Student
• 50786 - Top Question
• 50788 - Eight Puzzle
• 50504 - School contest
• 50787 - Expected Value
• 50859 - Low performance
• 50785 - Swimming Contest
• 50826 - Olive Containers

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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