Nearest Minimums
911A1100· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
23 3
Output
1
Sample 2of 3
Input
35 6 5
Output
2
Sample 3of 3
Input
92 1 3 5 4 1 2 3 1
Output
3
58%
911A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
23 3
1
35 6 5
2
92 1 3 5 4 1 2 3 1
3