Divide and Sum
1444B1900· candidate master2s512 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
11 4
Output
6
Sample 2of 4
Input
22 1 2 1
Output
12
Sample 3of 4
Input
32 2 2 2 2 2
Output
0
Sample 4of 4
Input
513 8 35 94 9284 34 54 69 123 846
Output
2588544
58%
1444B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)