#include <bits/stdc++.h> using namespace std; //网络密码:mlc5809928 int a[100][100],b[100][100]; int main(){ int n,m; cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[i][j]; b[j][n-i-1]=a[i][j];//顺90 b[m-j-1][i]=a[i][j];//逆90 b[n-i-1][m-j-1]=a[i][j];//180 b[i][m-j-1]=a[i][j];//左右 b[n-i-1][j]=a[i][j];//上下 } } for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cout<<b[i][j]<<' '; } cout<<endl; } return 0; }