100 atcoder#ABC222B. [ABC222B] Failing Grade
[ABC222B] Failing Grade
Score : points
Problem Statement
students took an exam. The students are labeled as Student , Student , , Student , and Student scored points.
A student who scored less than points are considered to have failed the exam and cannot earn the credit. Find the number of students who failed the exam.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of students who failed the exam.
4 50
80 60 40 0
2
Students and , who scored and points, respectively, succeeded in scoring at least points to earn the credit. On the other hand, Students and , who scored and points, respectively, fell below points and failed the exam. Thus, the answer is .
3 90
89 89 89
3
2 22
6 37
1