Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54823 | 张思存 | 图像旋转 | C++ | Accepted | 1 MS | 256 KB | 292 | 2024-10-31 21:47:01 |
#include<bits/stdc++.h> using namespace std; const int N=110; int n,m,a[N][N]; int main(){ cin>>n>>m; for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++) cin>>a[i][j]; } for(int j=1;j<=m;j++){ for(int i=n;i>=1;i--) cout<<a[i][j]<<' '; cout<<endl; } return 0; }