Bob has an array
Input format
- The first line contains an integer
, which denotes the number of test cases. - The first line of each test case contains three space separated integers
, , denoting the size of array , the value of and , respectively. - The second line of each test case contains
space-separated integers, denoting the elements of array .
Output format
For each test case, print the length of the largest subarray, such that it contains exactly
Constraints
2 3 2 1 2 3 1 1 1 2 1
2 0
For test case
For test case
Please login to use the editor
You need to be logged in to access the code editor
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor