Given two arrays of equal size N and an integer K. The task is to check if after permuting both arrays, we get sum of their corresponding element greater than or equal to k i.e Ai + Bi >= K for i =0 to N-1.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains three lines.The first line of input contains two integers N and K. Then in the next two lines are space separated elements of the array A and B.
For each test case, print "1" (without quotes) if sum is possible(for whole array) else "0" (without quotes).
1 <= T <= 100
1 <= N <=105 1 <= K <= 1012
1 <= Ai, Bi<= 1012