Maximize the Last Element
1991A800· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
41631 3 254 7 4 2 973 1 4 1 5 9 2
Output
6295
58%
1991A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
41631 3 254 7 4 2 973 1 4 1 5 9 2
6295