cf/mirror

Max Sum Array

CF
1612G2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
6
1 1 1 1 1 1
Output
0 720
Sample 2of 3
Input
1
1000000
Output
499833345 1
Sample 3of 3
Input
7
123 451 234 512 345 123 451
Output
339854850 882811119
1612G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)