Alternating Subsequence
1343C1200· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
451 2 3 -1 -24-1 -2 -1 -310-2 8 3 8 -4 -15 5 -2 -3 161 -1000000000 1 -1000000000 1 -1000000000
Output
2-16-2999999997
58%
1343C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)