Today, Marin is at a cosplay exhibition and is preparing for a group photoshoot!
For the group picture, the cospla
Currently, the line has nn cospla
Marin wants to know the minimum number of cospla
The first line contains a single integer tt (1≤t≤10001≤t≤1000) — the number of test cases.
The first line of each test case contains a positive integer nn (1≤n≤1001≤n≤100) — the number of cospla
The second line of each test case contains a binary string ss of length nn — describing the cospla
Note that there is no limit on the sum of nn.
For each test case, print the minimum number of cospla
9
3
000
3
001
3
010
3
011
3
100
3
101
3
110
3
111
19
1010110000100000101
4
2
1
0
2
0
0
0
17
In the first test case, for each pair of adjacent cospla
In the third test case, you can invite one female cospla