Array and Segments (Easy version)
1108E11800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 42 -2 3 1 21 34 52 51 3
Output
621 4
Sample 2of 3
Input
5 42 -2 3 1 43 53 42 42 5
Output
723 2
Sample 3of 3
Input
1 01000000
Output
00
58%
1108E1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)