Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Recent
Login
Problem1247--求矩阵对角线元素之和
1247: 求矩阵对角线元素之和
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
5
Solved:
4
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
求一个4×4矩阵对角线元素之和。
Input
矩阵
Output
2条对角线元素的和
Sample Input
1 2 3 4 5 7 0 6 9 1 8 4 7 6 1 3
Sample Output
19 12
Source/Category