cf/mirror

Left and Right Houses

CF
1945C1200· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
3
101
6
010111
6
011001
3
000
3
110
3
001
4
1100
Output
2
3
2
3
0
1
0
1945C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)