cf/mirror

Minimum on Subarrays

CF
2141C1800· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
1
Output
3
pushback a[0]
min
popfront
Sample 2of 2
Input
2
Output
6
pushfront a[1]
min
pushback a[0]
min
popfront
min
2141C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)