Yazan has an array $$$a$$$ consisting of $$$n$$$ integers.
Yazan can perform the following operation at most $$$k$$$ times:
Yazan hates variety, so he wants to minimize the number of distinct elements in the array. Can you help him find the minimum number of distinct elements he can have after performing no more than $$$k$$$ operations optimally?
The first line contains one integer $$$t \: (1 \le t \le 100)$$$ — the number of test cases.
The first line of each testcase contains two integers $$$n$$$ and $$$k \: (1 \le n \le 300 , \: 0 \le k \le 10^{12})$$$ — the number of elements and the number of available operations.
The second line of each test case contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n \: (1 \le a_i \le 10^9)$$$.
It is guaranteed that the sum of $$$n$$$ over all test cases doesn't exceed $$$300$$$.
For each test case, output the minimum number of distinct elements Yazan can have after performing no more than $$$k$$$ operations.
25 11 1 1 1 15 14 4 2 1 4
1 2
| Название |
|---|


