1050: 对角线求和

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

Description

输入4×4方阵,分别求两条对角线上元素之和。

Input

输入4×4方阵

Output

分别输出两条对角线上元素之和

Sample Input Copy

1 2 3 4
2 3 4 5
3 4 5 6
4 5 6 9

Sample Output Copy

18 16

加入题单

算法标签: