Run ID:65108
提交时间:2024-01-23 19:06:08
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main(){ int n=0,m=0,k=0,j=0,x=0,c=0; cin>>n>>m; int v[21][21],l[21][21]; for(k=0;k<n;k++){ for(j=0;j<m;j++){ cin>>v[k][j]; l[j][n-k-1]=v[k][j];} } for(k=0;k<n;k++){ cout<<l[k][0]; for(j=1;j<m;j++) cout<<" "<<l[k][j]; cout<<endl; } return 0; }