| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65261 | 石茂诤 | 矩阵右移动 | C++ | Wrong Answer | 2 MS | 272 KB | 421 | 2024-01-24 17:02:14 |
# include<iostream> using namespace std; int a[100][100]; int b[100][100]; int main(){ int n,m,c=0; cin>>m>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cin>>a[i][j]; b[i][(j+m)%n]=a[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } cout<<c; return 0; }
------Input------
2 3 1 2 3 4 5 6 7 8 9
------Answer-----
2 3 1 5 6 4 8 9 7
------Your output-----
1 2 3 4 5 6 7 8 9 0