You are given two integer arrays: $$$q_1, q_2, \dots, q_n$$$ and $$$r_1, r_2, \dots, r_n$$$, as well as an integer $$$k$$$.
You can perform the following operation any number of times (possibly zero):
Calculate the maximum number of operations that you can perform on the given arrays $$$q$$$ and $$$r$$$.
The first line contains one integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases.
The first line of each test case contains two integers $$$n$$$ and $$$k$$$ ($$$1 \le n \le 2 \cdot 10^5$$$; $$$2 \le k \le 10^{18}$$$) — the size of the arrays $$$q$$$ and $$$r$$$ and the upper limit for $$$x$$$ and $$$y$$$.
The second line of each test case contains $$$n$$$ integers $$$q_1, q_2, \dots, q_n$$$ ($$$1 \le q_i \le 10^9$$$) — the array $$$q$$$.
The third line contains $$$n$$$ integers $$$r_1, r_2, \dots, r_n$$$ ($$$1 \le r_i \le 10^9$$$) — the array $$$r$$$.
Additional constraints on the input: the sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$.
For each test case, print one integer — the maximum number of operations that you can perform on the given arrays.
31 1001273 105 6 57 1 75 425 4 2 2 19 8 9 8 100
103
In the first test case, one operation can be performed: you can choose $$$x = 69$$$ and $$$y = 42$$$. Then $$$\left\lfloor \frac{69}{42} \right\rfloor = 1 = q_1$$$ and $$$69 \bmod 42 = 27 = r_1$$$.
In the second test case, it is impossible to perform any operations, as suitable $$$x$$$ and $$$y$$$ cannot be found.
In the third test case, three operations can be performed: