Problem1080--C++语言3×3矩阵对角线 7.3

1080: C++语言3×3矩阵对角线 7.3

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

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

Input

矩阵

Output

主对角线 副对角线 元素和

Sample Input Copy

1 2 3
1 1 1
3 2 1

Sample Output Copy

3 7

Source/Category