时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
64bit IO Format: %lld
题目描述
You are given a matrix

consists of

rows and

columns. We call the grid in the upper left corner as
_%7B%7D)
and call the grid in the bottom right corner as
_%7B%7D)
. Each grid contains an integer

.
You can choose
at most 
grids. In addition, all grids
(i%5Cleq%20x%2Cj%5Cleq%20y)_%7B%7D)
except
_%7B%7D)
should be chosen before you choose
_%7B%7D)
. For example, if you want to choose
_%7B%7D)
, you should choose
%2C(1%2C2)%2C(2%2C1)_%7B%7D)
previously.
Your point is the sum of integers in the chosen grids, please calculate the
maximum point you can get.
输入描述:
The first line contains three integers
—
denote the number of rows and columns of the matrix, and
denote the number of grids you can choose mostly.
Then
lines follow, each line contains
integers
.
输出描述:
Output an integer representing the maximum point you can get.