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

Tests(0/0):


Code:

#拐角方阵 n = int(input()) 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,n): a[i][jj] = i+1 a[jj][j] = j+1 for row in a: print(*row)


Run Info:

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