Cost of the Array
2059B1300· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
43 21 1 18 81 1 2 2 3 3 4 45 41 1 1 2 25 41 1 1000000000 2 2
Output
2521
58%
2059B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)