cf/mirror

Divide and Sum

CF
1444B1900· candidate master2s512 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
1
1 4
Output
6
Sample 2of 4
Input
2
2 1 2 1
Output
12
Sample 3of 4
Input
3
2 2 2 2 2 2
Output
0
Sample 4of 4
Input
5
13 8 35 94 9284 34 54 69 123 846
Output
2588544
1444B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)