Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
47458 | 李昕霏 | 矩阵对角求和 | Python3 | Accepted | 38 MS | 4136 KB | 214 | 2023-04-30 14:30:13 |
a=int(input()) b=[] e=0 f=0 for i in range(a): c=[] for j in map(int,input().split()): c.append(j) b.append(c) for i in range(a): e+=b[i][i] f+=b[i][a-i-1] print(e) print(f)