Maximum Product?
1696H3500· legendary gm1.5s512 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
3 2-1 2 4
Output
10
Sample 2of 4
Input
3 11 1 1
Output
7
Sample 3of 4
Input
10 4-24 -41 9 -154 -56 14 18 53 -7 120
Output
225905161
Sample 4of 4
Input
15 50 0 2 -2 2 -2 3 -3 -3 4 5 -4 -4 4 5
Output
18119684
58%
1696H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)