#P1508. Likecloud-吃、吃、吃

Likecloud-吃、吃、吃

Output Format

Output one number: the maximum total energy you can obtain.

6 7
16 4 3 12 6 0 3
4 -5 6 7 0 0 2
6 0 -1 -2 3 6 8
5 3 4 0 0 -2 7
-1 7 4 0 7 -5 6
0 -1 3 4 12 4 2

41

Hint

Eat! Eat! Eat!

Translated by ChatGPT 5