UOJ Logo 黑暗爆炸OJ

DARKBZOJ

#1324. Exca王者之剑

统计 下载数据

Description

Input

第一行给出数字N,M代表行列数.N,M均小于等于100 下面N行M列用于描述数字矩阵

Output

输出最多可以拿到多少块宝石

Sample Input

2 2
1 2
2 1

Sample Output

4

Hint

Source

2007Amber国家队论文