0mar and Alternating Sums
2246C2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
45-1 1 1 2 331 2 341 3 5 714-1 -1 -1 1 2 2 3 3 3 5 5 5 5 5
Output
6111536
58%
2246C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
45-1 1 1 2 331 2 341 3 5 714-1 -1 -1 1 2 2 3 3 3 5 5 5 5 5
6111536