Nice guy

0

0 votes
bits manipulation, string, Medium-Hard
Problem
Sample Input
2
6 0
010101
3 1
001
Sample Output
0
3
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?