cf/mirror

Binary String To Subsequences

CF
1399D1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
4
0011
6
111111
5
10101
8
01010000
Output
2
1 2 2 1
6
1 2 3 4 5 6
1
1 1 1 1 1
4
1 1 1 1 1 2 3 4
1399D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)