Minimum on Subarrays
2141C1800· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
1
Output
3pushback a[0]minpopfront
Sample 2of 2
Input
2
Output
6pushfront a[1]minpushback a[0]minpopfrontmin
58%
2141C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)