#E. B - Failing Grade

    传统题 1000ms 256MiB

B - Failing Grade

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

B - Failing Grade

Score : $200$ points

Problem Statement

$N$ students took an exam. The students are labeled as Student $1$, Student $2$, $\dots$, Student $N$, and Student $i$ scored $a_i$ points.

A student who scored less than $P$ points are considered to have failed the exam and cannot earn the credit. Find the number of students who failed the exam.

Constraints

  • $1 \leq N \leq 10^5$
  • $1 \leq P \leq 100$
  • $0 \leq a_i \leq 100$ $(1 \leq i \leq N)$
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN PP

a1a_1 a2a_2 \dots aNa_N

Output

Print the number of students who failed the exam.


4 50
80 60 40 0
2

Students $1$ and $2$, who scored $80$ and $60$ points, respectively, succeeded in scoring at least $50$ points to earn the credit.
On the other hand, Students $3$ and $4$, who scored $40$ and $0$ points, respectively, fell below $50$ points and failed the exam. Thus, the answer is $2$.


3 90
89 89 89
3

2 22
6 37
1

2025寒假ATC码力训练营第二次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-1-19 13:00
结束于
2025-1-19 14:30
持续时间
1.5 小时
主持人
参赛人数
4