BETA
This is a school problem. Successful submissions of this are not counted in user ratings.

Submissions : 2108 Accuracy :

33.97

Smaller and Larger
     

Given a sorted array and a value x, find the number of array elements less than or equal to x and elements more than or equal to x. 

Input:

The first line of input contains an integer T denoting the number of test cases.
The first line of each test case is N and X,N is the size of array.
The second line of each test case contains N input C[i].

Output:

Print the number of Array elements less than or equal to x and Array elements greater than or equal to x. 

Constraints:

1 ≤ T ≤ 50
1 ≤ N ≤ 100
0 ≤ X ≤ 1000 
1 ≤ C[i] ≤ 200

Example:

Input:
3
7 0
1 2 8 10 11 12 19
7 5
1 2 8 10 11 12 19
7 10
1 2 8 10 11 12 19

Output:
0 7
2 5
4 4

 

**For More Examples Use Expected Output**


Set Default Code

					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.