#CCBCHBAHAI0000094. Bảng điểm lớp - thống kê miền 0..10
Bảng điểm lớp - thống kê miền 0..10
Class Scores - Statistics on 0..10
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem
Given integer scores and a passing threshold , compute
$$S=\sum a_i,\quad \mu=S/n,\quad \min a_i,\quad \max a_i,$$all frequencies , and
Print all statistics.
Input
The first line contains and . The second line contains scores in .
Output
Line 1: . Line 2: to 2 decimals. Line 3: minimum and maximum. Line 4: . Line 5: .
Subtask
Subtask 1 (20 points): .
Subtask 2 (30 points): .
Subtask 3 (50 points): .
Example
Input
8 5
10 7 5 4 7 0 5 9
Output
47
5.88
0 10
1 0 0 0 1 2 0 2 0 1 1
6
Explanation
The result follows directly from the mathematical definition above.