#abc222b. B - Failing Grade
B - Failing Grade
Score : points
问题描述
设有 名学生参加了考试。这些学生被标记为学生 、学生 、、学生 ,其中学生 得分为 分。
若一名学生的得分少于 分,则认为该生未能通过考试,不能获得学分。请找出未能通过考试的学生人数。
以上为通义千问 qwen-max 翻译,仅供参考。
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.
Sample Input 1
4 50
80 60 40 0
Sample Output 1
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 .
Sample Input 2
3 90
89 89 89
Sample Output 2
3
Sample Input 3
2 22
6 37
Sample Output 3
1
update @ 2024/3/10 09:46:18
相关
在下列比赛中: