矩阵对角线元素之和

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

给定一个 3×33×3 的矩阵,请你求出对角线元素之和。

输入格式

按照行优先顺序输入一个 3×33×3 矩阵,每个矩阵元素均为整数且取值范围为 [11,99]。

输出格式

输出从左下角到右上角这条对角线上的元素之和。

样例

1 2 3
3 4 5
6 0 1
13

20251012编程挑战精英赛训练

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
51
Start at
2025-9-24 15:00
End at
2025-11-5 7:00
Duration
1000 hour(s)
Host
Partic.
58