#3504. Failing Grade

0
    ID: 3504 传统题 2000ms 1024MiB 尝试: 14 已通过: 3 难度: 1 上传者: 标签>AtCoderabc222BGESP 1级枚举(单层循环)分支结构

Failing Grade

Failing Grade

题目描述

NN students took an exam. The students are labeled as Student 11, Student 22, …\dots, Student NN, and Student ii scored aia_i points. A student who scored less than PP points are considered to have failed the exam and cannot earn the credit. Find the number of students who failed the exam.

输入格式

Input is given from Standard Input in the following format: NN PP a1a_1 a2a_2 …\dots aNa_N

输出格式

Print the number of students who failed the exam.

4 50
80 60 40 0
2
3 90
89 89 89
3
2 22
6 37
1

提示

1≤N≤1051 \leq N \leq 10^5 1≤P≤1001 \leq P \leq 100 0≤ai≤1000 \leq a_i \leq 100 (1≤i≤N)(1 \leq i \leq N) All values in input are integers.Students 11 and 22, who scored 8080 and 6060 points, respectively, succeeded in scoring at least 5050 points to earn the credit.
On the other hand, Students 33 and 44, who scored 4040 and 00 points, respectively, fell below 5050 points and failed the exam. Thus, the answer is 22.

标签: AtCoder|abc222B

来源

AtCoder|abc222B