cf/mirror

Maximum Sum on Even Positions

CF
1373D1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
8
1 7 3 4 7 6 2 9
5
1 2 1 2 1
10
7 8 4 5 7 6 8 9 7 3
4
3 1 2 1
Output
26
5
37
5
1373D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)