#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 . you can change at most 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 which stands for the number of test cases.
for each test case, the first line contains two number , ( , ).
the next contains element of the sequence, whose value is 0
or 1
.
Output
Output the answer in one line for each test case.
Samples
Resources
Sichuan University Programming Contest