Two Subarrays
2042F2600· international gm3s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
73 -1 4 -3 2 4 00 6 1 0 -3 -2 -163 1 71 2 03 3 62 5 -31 3 23 1 5
Output
18716
Sample 2of 2
Input
102 -1 -3 -2 0 4 5 6 2 52 -4 -5 -1 6 2 5 -6 4 2103 6 71 10 -23 5 73 2 82 1 -52 7 43 1 33 3 83 2 31 4 4
Output
232828-1727-22
58%
2042F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)