cf/mirror

Kevin and Arithmetic

CF
2061A800· newbie1s256 MB⌨ stdin/stdout
#math

Examples

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