Submit | All submissions | Best solutions | Back to list |
EIAVS - AVERAGE SCORE |
The teacher assigned Ty the task of counting how many students in the class had a score higher than the average score of the whole class. Please help Ty write a program to perform this task.
Input
+ The first line is the number of N students (0 < N <109) in the class.
+ The second line contains N real numbers representing the score for each student (0 ≤ Ni ≤ 100).
+ The first line is the number of N students (0 < N <109) in the class.
+ The second line contains N real numbers representing the score for each student (0 ≤ Ni ≤ 100).
Output
Number of students who meet the above conditions.
Example
Input: 8 7.2 5.5 6.7 9.1 8.5 9.3 3.7 7.5 Output: 5
Added by: | Ha Minh Ngoc |
Date: | 2020-06-13 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYPY3 PYTHON3 RUBY SQLITE SWIFT VB.NET |