Woburn Team Practice '07
A cow has just issued you a challenge! You are given a list of 0
s and 1
s), whose lengths do not exceed
Input Specification
The first line of the input file contains a single integer
Each test case begins with a single line listing the integers
Output Specification
Output the following (on separate lines) for each test case:
A single integer that is the maximum number of bitstrings you can create.
Sample Input
2
3 3 1
00
1
100
3 2 4
00
101
110
Sample Output
2
2
Explanation
Case
Case
Comments