#abc330a. A - Counting Passes

A - Counting Passes

Score : 100100 points

问题描述

设有 NN 名参与者,编号分别为 1,2,,N1,2,\dots,N,参加了考试。其中编号为 ii 的参与者获得了 AiA_i 分。

只有得分至少为 LL 分的人才能通过本次考试。请确定在 NN 名参与者中,有多少人通过了考试。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

NN people labeled 1,2,,N1,2,\dots,N took an exam, and person ii scored AiA_i points.
Only those who scored at least LL points pass this exam.
Determine how many people out of the NN have passed the exam.

Constraints

  • All input values are integers.
  • 1N1001 \le N \le 100
  • 1L10001 \le L \le 1000
  • 0Ai10000 \le A_i \le 1000

Input

The input is given from Standard Input in the following format:

NN LL

A1A_1 A2A_2 \dots ANA_N

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 6060 points to pass.

  • Person 11 scored 6060 points, so they passed.
  • Person 22 scored 2020 points, so they did not pass.
  • Person 33 scored 100100 points, so they passed.
  • Person 44 scored 9090 points, so they passed.
  • Person 55 scored 4040 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