cf/mirror

Haunted House

CF
1884B1100· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
1
1
2
01
3
010
5
10101
7
0000111
12
001011000110
Output
-1
1 -1
0 1 -1
1 3 -1 -1 -1
3 6 9 12 -1 -1 -1
0 2 4 6 10 15 20 -1 -1 -1 -1 -1
1884B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)