http://noi.openjudge.cn/ch0108/11/
"""
1.8 编程基础之多维数组 11 图像旋转 4分
http://noi.openjudge.cn/ch0108/11/
"""
m,n=map(int,input().split())
a=[]
b= [[0] * n for t in range(m)]
c = [[0] * n for t in range(m)]
for i in range(m):
a.append(list(map(int,input().split())))
'''
for i in range(n):
for j in range(m):
b.append(int(0))
for i in range(n):
for j in range(m):
c.append(int(0))
'''
for i in range(n):
for j in range(m):
b[i][j]=a[m-1-j][n-1-i]
for i in range(n):
for j in range(m):
c[i][j]=b[n-1-i][j]
for i in range(n):
for j in range(m):
if j==m-1:
print(c[i][j])
else:
print(c[i][j],end=' ')
|