Run ID:58051

提交时间:2023-09-17 14:54:23

n=int(input()) count=1 for i in range(n): count=i+1 for j in range(n): if j==n-1: print(count) else: print(count,end=" ") count+=n