cf/mirror

Decoding of Integer Sequences

CF
1170D3s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
12
3 2 1 1 7 2 4 -1 3 -1 4 -1
Output
3
3 3 1 4
2 2 7
4 1 2 3 4
Sample 2of 2
Input
6
2 -1 2 -1 3 -1
Output
3
1 2
0
2 2 3
1170D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)