PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#CCBCHBAHAI0000010. Tần suất ký hiệu số 1..6 của xúc xắc
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Tần suất ký hiệu số 1..6 của xúc xắc
Dice Face Frequencies 1..6
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem
Given outcomes of a standard die, each . For each face , let be its number of occurrences. Print .
Input
Line 1 contains . Line 2 contains .
Output
Print the six values .
Subtasks
Subtask 1 (20 points): ; .
Subtask 2 (30 points): ; .
Subtask 3 (50 points): ; .
Example
Input
8
1 6 2 6 6 3 1 4
Output
2 1 1 1 0 3
Explanation
The values follow directly from the definitions and illustrate the valid index range of the array scan.