Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54344 | zhangweiran | 图像旋转 | C++ | Accepted | 1 MS | 260 KB | 292 | 2024-10-27 10:47:14 |
#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; }