cf/mirror

Fixing a Binary String

CF
1979D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
8 4
11100001
4 2
1110
12 3
111000100011
5 5
00000
6 1
101001
8 4
01110001
12 2
110001100110
Output
3
-1
7
5
4
-1
3
1979D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)