#abc330a. A - Counting Passes
A - Counting Passes
Score : points
问题描述
设有 名参与者,编号分别为 ,参加了考试。其中编号为 的参与者获得了 分。
只有得分至少为 分的人才能通过本次考试。请确定在 名参与者中,有多少人通过了考试。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
people labeled took an exam, and person scored points.
Only those who scored at least points pass this exam.
Determine how many people out of the have passed the exam.
Constraints
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
5 60
60 20 100 90 40
Sample Output 1
3
Five people took the exam. You need to score at least points to pass.
- Person scored points, so they passed.
- Person scored points, so they did not pass.
- Person scored points, so they passed.
- Person scored points, so they passed.
- Person scored points, so they did not pass.
From the above, we can see that three people have passed.
Sample Input 2
4 80
79 78 77 76
Sample Output 2
0
There may be cases no one has passed.
Sample Input 3
10 50
31 41 59 26 53 58 97 93 23 84
Sample Output 3
6
update @ 2024/3/10 01:13:24