| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71640 | 张康楠 | 矩阵对角线 | Python3 | Accepted | 55 MS | 4692 KB | 322 | 2024-04-27 10:37:25 |
n,num = map(int,input().split()) a=[] for x in range(n): b = list(map(int,input().split())) a.append(b) for i in range(n): for j in range(n): if i==j or i+j ==n-1: a[i][j]=a[i][j]+num for row in a: for ele in row: print( str(ele).rjust(5),end="") print()