| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77496 | 冯潇阳 | 外围元素之和 | Python3 | Accepted | 32 MS | 3780 KB | 348 | 2024-06-09 19:25:01 |
row,col = input().split() row=int(row) col=int(col) a=[] for i in range(row): tmp=input().split() tmp=[int(x) for x in tmp] a.append(tmp) res=0 for i in range(row): for j in range (col): if i==0 or i==row-1: res=res+a[i][j] elif j==0 or j==col-1: res=res+a[i][j] print(res)