cf/mirror

Maximum Subrectangle

CF
1060C1600· expert2s512 MB⌨ stdin/stdout

Examples

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