#CCBCHBA0000024. Đếm số đạt chuẩn điểm (Count Passing Scores)
Đếm số đạt chuẩn điểm (Count Passing Scores)
Count Passing Scores
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given n integer scores from 0 to 10, count how many scores are at least 5.
Input
n in [0,10000], followed by n integer scores in [0,10].
Output
The number of scores >=5.
Subtasks
- Subtask 1 (20%): , điểm .
- Subtask 2 (30%): , điểm .
- Subtask 3 (50%): , điểm .
Examples
Example 1
Input
5
4 5 10 0 6
Output
3
Explanation
5, 10, and 6 pass; score 5 is included.
Example 2
Input
0
Output
0
Explanation
There are no scores.