cf/mirror

Minimum Value Rectangle

CF
1027C1600· expert2s256 MB⌨ stdin/stdout
#greedy

Examples

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