Strange_Integers
题号:NC231124
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Given n integers and a parameter k, you should choose some integers so that . Determine the maximum number of the integers you can choose.

输入描述:

The first line contains two integers , denoting the number of given integers and the given parameter.

The second line contains n integers , denoting the given integers.

输出描述:

Output one line containing one integer, denoting the maximum number of the integers you can choose.
示例1

输入

复制
11 2
3 1 4 1 5 9 2 6 5 3 5

输出

复制
4

说明

One possible scheme is to choose \{A_3 = 4, A_6 = 9, A_7 = 2, A_8 = 6\}.