| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77881 | 只因你太美(Ikun 真爱粉) | 矩阵右移动 | C++ | Wrong Answer | 1 MS | 272 KB | 505 | 2024-06-15 16:50:57 |
# include<iostream> using namespace std; int main(){ int n,m,a[10][10],b; cin>>m>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; } } for(int j=1;j<=m;j++){ for(int i=1;i<=n;i++){ b=a[i][j]; a[i][j]=a[i][j+1]; a[i][j+1]=b; } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }
------Input------
3 3 1 2 3 4 5 6 7 8 9
------Answer-----
1 2 3 4 5 6 7 8 9
------Your output-----
2 3 4742595 5 6 8044680 8 9 8044460