Blanca has a sequence of $$$n$$$ integers $$$a_1, \ldots, a_n$$$ and a positive integer $$$k$$$. She can perform operations of the following two types:
Blanca wants to make all $$$n$$$ numbers equal by applying these operations zero or more times. Help her determine the minimum number of times she needs to perform operations of the first type. (She can perform as many operations of the second type as she wants).
The first line contains an integer $$$T$$$, the number of test cases to process.
Each case consists of a line with two integers $$$n$$$ and $$$k$$$, followed by a line with the $$$n$$$ integers $$$a_1, \ldots, a_n$$$.
For each case, print a line with the minimum number of operations of the first type needed to equalize the numbers.
45 32 1 2 4 33 11 2 33 21 2 35 11000000000 1000000000 1000000000 999999999 1000000000
3 0 3 1