cf/mirror

Consecutive Sum

CF
1733A800· newbie1s256 MB⌨ stdin/stdout

Examples

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