2622: C语言程序设计教程(第三版)课后习题7.3

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

Description

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

Input

矩阵

Output

主对角线 副对角线 元素和

Sample Input Copy

1 2 3
1 1 1
3 2 1

Sample Output Copy

3 7