Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
128419 | 6倪葭轩 | 外围元素之和 | Python3 | Accepted | 55 MS | 3780 KB | 278 | 2025-08-16 14:38:02 |
row,col =input().split() row=int(row) col=int(col) a=[] for x in range(row): b=input().split() a.append(b) res=0 for i in range(row): for j in range(col): if i ==0 or j==0 or i==row-1 or j==col-1: res+=int(a[i][j]) print(res)