#abc231c. C - Counting 2
C - Counting 2
Score : points
问题描述
存在一个包含 名学生的班级。第 名学生()的身高为 。
对于每个 ,回答以下问题:
- 按照题目要求,有多少名学生的身高不少于 ?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
There is a class with students. The height of the -th student is .
For each , answer the following question.
- How many of the students have a height of at least ?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print lines.
The -th line should contain the number of students with a height of at least .
Sample Input 1
3 1
100 160 130
120
Sample Output 1
2
The students with a height of at least are the -nd and -rd ones.
Sample Input 2
5 5
1 2 3 4 5
6
5
4
3
2
Sample Output 2
0
1
2
3
4
Sample Input 3
5 5
804289384 846930887 681692778 714636916 957747794
424238336
719885387
649760493
596516650
189641422
Sample Output 3
5
3
5
5
5
update @ 2024/3/10 10:04:42