cf/mirror

Plus Minus Permutation

CF
1872D1200· pupil1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1multi-test • hover to link
Input
8
7 2 3
12 6 3
9 1 9
2 2 2
100 20 50
24 4 6
1000000000 5575 25450
4 4 1
Output
12
-3
44
0
393
87
179179179436104
-6
1872D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)