cf/mirror

Arithmetic Progression

CF
382C1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 5
Input
3
4 1 7
Output
2
-2 10
Sample 2of 5
Input
1
10
Output
-1
Sample 3of 5
Input
4
1 3 5 9
Output
1
7
Sample 4of 5
Input
4
4 3 4 5
Output
0
Sample 5of 5
Input
2
2 4
Output
3
0 3 6
382C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)