Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128415 江屹山 外围元素之和 Python3 Wrong Answer 57 MS 3792 KB 401 2025-08-16 14:34:36

Tests(0/10):


Code:

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: res+=int(a[i][j]) if j==0: res += int(a[i][j]) if i==row-1: res += int(a[i][j]) if j==col-1: res += int(a[i][j]) print(res)


Run Info:

------Input------
1 10 9 0 4 4 7 7 9 4 6 4
------Answer-----
54
------Your output-----
121