cf/mirror

Maximum of Maximums of Minimums

CF
870B1200· pupil1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 2
Input
5 2
1 2 3 4 5
Output
5
Sample 2of 2
Input
5 1
-4 -5 -3 -2 -1
Output
-5
870B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)