#P1829B. Blank Space
Blank Space
No submission language available for this problem.
Description
You are given a binary array of elements, a binary array is an array consisting only of s and s.
A blank space is a segment of consecutive elements consisting of only s.
Your task is to find the length of the longest blank space.
The first line contains a single integer () — the number of test cases.
The first line of each test case contains a single integer () — the length of the array.
The second line of each test case contains space-separated integers () — the elements of the array.
For each test case, output a single integer — the length of the longest blank space.
Input
The first line contains a single integer () — the number of test cases.
The first line of each test case contains a single integer () — the length of the array.
The second line of each test case contains space-separated integers () — the elements of the array.
Output
For each test case, output a single integer — the length of the longest blank space.