#4924. Counting Passes
Counting Passes
Counting Passes
题目描述
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.
输入格式
The input is given from Standard Input in the following format:
输出格式
Print the answer as an integer.
5 60
60 20 100 90 40
3
4 80
79 78 77 76
0
10 50
31 41 59 26 53 58 97 93 23 84
6
提示
All input values are integers. 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.
There may be cases no one has passed.
标签: AtCoder|abc330A
来源
AtCoder|abc330A