题解 | #序列重组矩阵#
序列重组矩阵
http://www.nowcoder.com/practice/7548f8f5e44c42fa84fb2323d899a966
num=input().split(" ")
n,m=map(int,num)
matrix_val=input().split(" ")
for i in range(n):
for j in range(m):
print(matrix_val[i*m+j],end=" ")
print()