cf/mirror

Alternating Sum of Numbers

CF
2010A800· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4
1 2 3 17
1
100
2
100 100
5
3 1 4 1 5
Output
-15
100
0
10
2010A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)