#3504. Failing Grade
0
Failing Grade
Failing Grade
题目描述
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.
输入格式
Input is given from Standard Input in the following format:
输出格式
Print the number of students who failed the exam.
4 50
80 60 40 0
2
3 90
89 89 89
3
2 22
6 37
1
提示
All values in input are integers.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 .
标签: AtCoder|abc222B
来源
AtCoder|abc222B