cf/mirror

Rudolf and CodeVid-23

CF
1846G1900· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
5 4
10011
3
10000
00110
3
00101
00000
3
01010
00100
5
11010
00100
4 1
0000
10
1011
0100
2 2
11
2
10
01
3
01
10
2 3
11
3
01
10
3
10
00
4
10
01
Output
8
0
-1
6
1846G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…