cf/mirror

Consecutive Sum Riddle

CF
1594A800· newbie2s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
7
1
2
3
6
100
25
3000000000000
Output
0 1
-1 2
1 2
1 3
18 22
-2 7
999999999999 1000000000001
1594A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)