Problem 4840. -- 磁力块

4840: 磁力块

Time Limit: 10 Sec  Memory Limit: 512 MB
Submit: 37  Solved: 13
[Submit][Status][Web Board]

Description

Input

0 6 3 12 10
0 2 11 3 9
2 2 12 5 5
0 6 5 9 3
6 8 6 5 3
8 0 4 3 6
4 4 3 5 3
4 6 6 5 3
0 4 3 9 11
2 0 10 3 3
8 0 11 12 11

Output

6

HINT

Source

[Submit][Status]