#K261. Count Students with Minimum Score
Count Students with Minimum Score
Count Students with Minimum Score
You are given scores of N students and a threshold T (in percentage). Your task is to determine the number of students whose scores are at least T
. In other words, you need to count the number of students satisfying the condition: \(score \geq T\).
Input Format:
The input consists of two lines. The first line contains two integers N and T separated by a space. The second line contains N integers representing the scores of the students.
Output Format:
Output a single integer that represents the number of students with scores greater than or equal to T.
inputFormat
The input is read from stdin
and consists of two lines:
- The first line contains two integers N and T where \(N\) is the number of students and \(T\) is the threshold score.
- The second line contains \(N\) integers representing the scores of the students.
outputFormat
Output the number of students whose score is at least \(T\). The result is printed on stdout
.
6 50
70 45 50 90 66 30
4