二维数组第二课

root 站长 2019-06-08 17:29:19 2020-12-16 17:06:47 25

二维数组的边缘元素关系为

在一个 m * n 的矩阵中,边缘元素均满足以下条件: if(i == 1 || i == n || j == 1 || j == m)

二维数组对角线元素之间的关系

在一个 n * m 的矩阵 a 中,有以下关系

(1) 同行的元素行坐标(第一个坐标)均相同: a[1][1], a[1][2], a[1][3], ... , a[1][m]

(2) 同列的坐标列元素(第二个坐标)均相同: a[1][1], a[2][1], a[3][1], ... , a[n][1]

(3) 从左上到右下的对角线元素坐标之差相同: a[1][1], a[2][2], a[3][3], ...

(4) 从左下到右上的对角线元素坐标之和相同: a[n][1], a[n-1][2], a[n-2][3], ... , a[1][n]

{{ vote && vote.total.up }}

共 9 条回复

12121 Game for peace
谢谢!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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