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

Сборники > Фёдор Меньшиков. Тренировки > задача:


023. 50437 - Age Labeling

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

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

• 010. 50782 - Max of N integers
• 015. 50466 - Drawing Square From...
• 016. 50463 - Drawing a Triangle
• 017. 50423 - Numbers square
• 018. 50344 - Profit or Loss
• 019. 50438 - Pattern with stars
• 020. 50408 - Molecules
• 022. 50366 - Student Averages (2 G...
• 023. 50437 - Age Labeling
• 026. 50399 - Mobile Base Station
• 040. 50335 - Five Math Operators
• 045. 50462 - Class Average (3 Gra...
• 074. 50396 - Cinema Tickets - 1
• 080. 50248 - Power of two
• 090. 50456 - nth Digit of a Number
• 110. 50288 - Even numbers in even...
• 115. 50425 - Calculating Weekly Pay

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

Если у вас есть предложения или пожелания по работе 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