Run ID:87591

提交时间:2024-08-10 20:05:11

n = int(input() a = [list(map(int,input().split() ) for x in range(n)] res = 0 for x in range(n): for y in range(n): if x==y or x+y == n-1: res=res +a[×][y] print(res)