4550: P6208 [USACO06OCT] Cow Pie Treasures G

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

Description

Input

Output

Sample Input Copy

3 7
6 5 3 7 9 2 7
2 4 3 5 6 8 6
4 9 9 9 1 5 8

Sample Output Copy

50