1925: 建造-CCF-GESP2025年12月四级C++

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:3

Description

Input

Output

输出一行,代表最大的海拔之和。

Sample Input Copy

5 5 3
5 5 5 5 5
5 1 5 1 5
5 5 5 5 5
5 2 5 2 5
3 5 5 5 2

Sample Output Copy

40