Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72097 陆宥呈 拐角方阵 Python3 Compile Error 0 MS 0 KB 291 2024-04-30 21:19:32

Tests(0/0):


Code:

#拐角方阵 n = 7 a = [ [0]*n for x in range(n) ] for i in range(n): for j in range(n): if i==j: #主对角线的元素 a[i][j] = i+1 for jj in range(j+1,n): a[i][jj] = i+1 a[j][jj] = i+1 for row in a: print(*row)


Run Info:

Sorry: TabError: inconsistent use of tabs and spaces in indentation (Main.py, line 11)