| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75538 | 小徐老师 | 外围元素之和 | Python3 | Accepted | 33 MS | 3784 KB | 275 | 2024-05-27 09:44:29 |
m, n = map(int, input().split()) a = [] for i in range(m): b = list(map(int, input().split())) a.append(b) ans = 0 for i in range(m): for j in range(n): if i == 0 or j == 0 or i == m - 1 or j == n - 1: ans += a[i][j] print(ans)