Perform Operations to Maximize Score
1998C1900· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
82 103 31 13 103 3 30 0 04 42 1 5 10 1 0 15 47 5 2 5 40 0 1 0 15 15 15 15 2 111 0 0 1 15 210 11 4 10 151 1 0 1 04 41 1 2 51 1 0 02 10000000001000000000 10000000001 1
Output
166813212683000000000
58%
1998C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)