Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69045 张康楠 外围元素之和 Python3 Wrong Answer 30 MS 3788 KB 361 2024-03-30 11:41:37

Tests(0/10):


Code:

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


Run Info:

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