Array and Segments (Hard version)
1108E22100· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
5 42 -2 3 1 21 34 52 51 3
Output
624 1
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%
1108E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)