cf/mirror

0mar and Alternating Sums

CF
2246C2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
5
-1 1 1 2 3
3
1 2 3
4
1 3 5 7
14
-1 -1 -1 1 2 2 3 3 3 5 5 5 5 5
Output
6
1
1
1536
2246C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)