Four Segments
846C1800· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3-1 2 3
Output
0 1 3
Sample 2of 3
Input
40 0 -1 0
Output
0 0 0
Sample 3of 3
Input
110000
Output
1 1 1
58%
846C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3-1 2 3
0 1 3
40 0 -1 0
0 0 0
110000
1 1 1