#Lutece0587. consecutive

consecutive

Migrated from Lutece 587 consecutive

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

You are given a 01 sequence whose size is nn. you can change at most kk 0 into 1 in the sequence. Now I want to know how many consecutive 1 in the sequce at most after you do the change.

Input

The first of input is an integer tt which stands for the number of test cases.

for each test case, the first line contains two number nn, kk ( 1n1000001 \leq n \leq 100000, 0kn0 \leq k \leq n ).

the next contains nn element of the sequence, whose value is 0 or 1.

Output

Output the answer in one line for each test case.

Samples

输入数据 1

2
4 2
1 0 0 1
4 1
1 0 1 0

输出数据 1

4
3

Resources

Sichuan University Programming Contest