Periodic RMQ Problem
803G2300· international master4s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 11 2 332 1 31 1 2 42 1 3
Output
13
Sample 2of 2
Input
3 21 2 352 4 41 4 4 52 4 41 1 6 12 6 6
Output
151
58%
803G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)