| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71356 | 胡海峰老师 | 外围元素之和 | Python3 | Accepted | 36 MS | 3784 KB | 343 | 2024-04-22 21:39:28 |
row ,col = list( map(int,input().split() ) ) #row行,col列 a = [ list( map(int,input().split() ) ) for x in range(row) ] res =0 #处理数据 for i in range(row): #i行索引 for j in range(col):#j列表的索引 if i==0 or i == row-1 or j==0 or j == col-1: res = res + a[i][j] print(res)