Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125547 | 李俊博 | 矩阵旋转 | C++ | Accepted | 4 MS | 304 KB | 297 | 2025-07-15 09:18:39 |
#include<bits/stdc++.h> using namespace std; int a[100][100]; int main(){ int n,m; cin>>m>>n; for(int i=1;i<=m;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; } } for(int j=1;j<=n;j++){ for(int i=m;i>=1;i--){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }