CF2091B.Team Training

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Team Training

At the IT Campus "NEIMARK", there are training sessions in competitive programming — both individual and team-based!

For the next team training session, nn students will attend, and the skill of the ii-th student is given by a positive integer aia_i.

The coach considers a team strong if its strength is at least xx. The strength of a team is calculated as the number of team members multiplied by the minimum skill among the team members.

For example, if a team consists of 44 members with skills [5,3,6,8][5, 3, 6, 8], then the team's strength is 4min([5,3,6,8])=124 \cdot min([5, 3, 6, 8]) = 12.

Output the maximum possible number of strong teams, given that each team must have at least one participant and every participant must belong to exactly one team.

Input

Each test contains multiple test cases. The first line contains the number of test cases tt (1t1041 \leq t \leq 10^4). The description of the test cases follows.

The first line of each test case contains two integers nn and xx (1n21051 \leq n \leq 2 \cdot 10^5, 1x1091 \leq x \leq 10^9) — the number of students in training and the minimum strength of a team to be considered strong.

The second line of each test case contains nn integers aia_i (1ai1091 \leq a_i \leq 10^9) — the skill of each student.

It is guaranteed that the sum of nn over all test cases does not exceed 21052 \cdot 10^5.

Output

For each test case, output the maximum possible number of teams with strength at least xx.

Samples

5
6 4
4 5 3 3 2 6
4 10
4 2 1 3
5 3
5 3 2 3 2
3 6
9 1 7
6 10
6 1 3 6 3 2
4
0
4
2
1

在线编程 IDE

建议全屏模式获得最佳体验