4574: P1130 红牌
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description

Input

Output

Sample Input Copy
4 3
2 6 1 8
3 6 2 6
4 2 3 6
Sample Output Copy
12
HINT
