Time Limit: 4000/2000 MS (Java/Others)

Memory Limit: 65536/65536 K (Java/Others)

Given a sequence of numbers $A=a_1,a_2,…,a_N$, a subsequence $b_1,b_2,…,b_k$ of $A$ is referred as increasing if $b_1<b_2<…<b_k$. LY has just learned how to find the longest increasing subsequence (LIS).

Now that he has to select $L$ consecutive numbers and remove them from $A$ for some mysterious reasons. He can choose arbitrary starting position of the selected interval so that the length of the LIS of the remaining numbers is maximized. Can you help him with this problem?

Now that he has to select $L$ consecutive numbers and remove them from $A$ for some mysterious reasons. He can choose arbitrary starting position of the selected interval so that the length of the LIS of the remaining numbers is maximized. Can you help him with this problem?

The first line of input contains a number $T$ indicating the number of test cases ($T≤100$).

For each test case, the first line consists of two numbers $N$ and $L$ as described above ($1≤N≤100000,0≤L≤N$). The second line consists of $N$ integers indicating the sequence. The absolute value of the numbers is no greater than $10^9$.

The sum of N over all test cases will not exceed 500000.

For each test case, the first line consists of two numbers $N$ and $L$ as described above ($1≤N≤100000,0≤L≤N$). The second line consists of $N$ integers indicating the sequence. The absolute value of the numbers is no greater than $10^9$.

The sum of N over all test cases will not exceed 500000.

提交代码