1022: 求一个3×3矩阵对角线元素之和

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:23 Solved:10

Description

求一个3×3矩阵对角线元素之和。

Input

矩阵

Output

主对角线 副对角线 元素和

Sample Input Copy

1 2 3
1 1 1
3 2 1

Sample Output Copy

3 7

Source/Category