Problem2834--[csp-j2020]P4 方格取数

2834: [csp-j2020]P4 方格取数

[Creator : ]
Time Limit : 3.000 sec  Memory Limit : 128 MB

Description




Sample Input Copy

3 4
1 -1 3 2
2 -1 4 -1
-2 2 -3 -1

Sample Output Copy

9

Source/Category

csp-j