Max Sum Array
1612G2500· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
61 1 1 1 1 1
Output
0 720
Sample 2of 3
Input
11000000
Output
499833345 1
Sample 3of 3
Input
7123 451 234 512 345 123 451
Output
339854850 882811119
58%
1612G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)