5. Fill the numbers $1,2, \cdots, 9$ into a $3 \times 3$ grid such that the sum of the absolute differences of adjacent (sharing a common edge) numbers is maximized. Then this maximum value is $(\quad)$.
(A) 57
(B) 58
(C) 59
(D) 60
5. B.

Since the number at the center has the greatest weight, it should be 1 or 9. For example, 1, in which case the eight numbers should be divided into two groups by size and distributed alternately around it, as shown in Figure 4.