1519 - [POI2006]Ork-Ploughing

输入

输出

一个整数表示最少的耕种次数

样例

输入

12 6 4
6 0 4 8 0 5
0 4 5 4 6 0
0 5 6 5 6 0
5 4 0 0 5 4

输出

8


The illustration above shows the optimal ploughing of the field from the example.
时间限制 1 秒
内存限制 128 MB
讨论 统计
上一题 下一题