A - Passing Score Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

配点 : 200

問題文

高橋君は学校の期末テストの結果を集計しています。

このクラスには N 人の生徒がおり、生徒 i の得点は A_i 点です。得点はすべて 0 点以上 100 点以下の整数です。

先生は合格ラインとして X 点を設定しました。得点が X 点以上の生徒は合格、X 点未満の生徒は不合格となり、補習を受けなければなりません。

補習を受けなければならない生徒、すなわち得点が X 点未満の生徒の人数を求めてください。

制約

  • 1 \leq N \leq 2 \times 10^5
  • 0 \leq X \leq 100
  • 0 \leq A_i \leq 100
  • 入力はすべて整数

入力

N X
A_1 A_2 \ldots A_N
  • 1 行目には、生徒の人数を表す整数 N と、合格ラインを表す整数 X が、スペース区切りで与えられる。
  • 2 行目には、各生徒の得点を表す整数 A_1, A_2, \ldots, A_N が、スペース区切りで与えられる。
  • A_i は生徒 i の得点を表す。

出力

得点が X 点未満の生徒の人数を 1 行で出力せよ。


入力例 1

5 60
72 45 60 38 85

出力例 1

2

入力例 2

8 50
49 50 51 30 75 50 48 100

出力例 2

3

入力例 3

15 70
65 70 82 55 91 68 70 43 77 69 100 35 88 71 60

出力例 3

7

Score : 200 pts

Problem Statement

Takahashi is tallying the results of his school's final exam.

There are N students in the class, and student i scored A_i points. All scores are integers between 0 and 100, inclusive.

The teacher has set a passing grade of X points. Students who scored X points or more pass, while students who scored less than X points fail and must attend supplementary lessons.

Find the number of students who must attend supplementary lessons, that is, the number of students who scored less than X points.

Constraints

  • 1 \leq N \leq 2 \times 10^5
  • 0 \leq X \leq 100
  • 0 \leq A_i \leq 100
  • All inputs are integers

Input

N X
A_1 A_2 \ldots A_N
  • The first line contains an integer N representing the number of students and an integer X representing the passing grade, separated by a space.
  • The second line contains integers A_1, A_2, \ldots, A_N representing each student's score, separated by spaces.
  • A_i represents the score of student i.

Output

Print the number of students who scored less than X points, on a single line.


Sample Input 1

5 60
72 45 60 38 85

Sample Output 1

2

Sample Input 2

8 50
49 50 51 30 75 50 48 100

Sample Output 2

3

Sample Input 3

15 70
65 70 82 55 91 68 70 43 77 69 100 35 88 71 60

Sample Output 3

7