题号:NC224155
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld
题目描述
Bob has an

matrix

.
This matrix is very special, It's calculated by two sequences

,

,
Now Bob wants to find a submatrix of

with the largest average value.
Bob doesn't want the size of submatrix to be too small, so the submatrix you find must satisfy that the
height(the first dimension of matrix) of it is at least

and the
width(the second dimension of matrix) of it is at least

.
Now you need to calculate the largest average value.
输入描述:
The first line has four integers
.
The second line has
integers
.
The third line has
integers
.



输出描述:
Output the largest average value.
Your answer will be considered correct if the absolute or relative error is less than 