#CCBCHBAHAI0000169. Đếm chữ số 0..9 (Count Digits 0..9)
Đếm chữ số 0..9 (Count Digits 0..9)
Count Digits 0..9
Source: The C Programming Language
Version: Phuoc Hung OJ Extended
Problem
Given digits , each in . For every digit , let be its number of occurrences. Print .
Input
- Line 1: integer .
- Line 2: digits.
Output
Print ten integers separated by spaces.
Subtask
Subtask 1 (100 points): ; .
Example
Input
8
0 2 2 9 0 5 2 9
Output
2 0 3 0 0 1 0 0 0 2
Explanation
Digits occur times respectively; all other frequencies are zero.