Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111873 | 陈铎文 | 矩阵右移动 | C++ | Accepted | 1 MS | 272 KB | 292 | 2025-03-07 19:35:47 |
#include<bits/stdc++.h> using namespace std; int m,n; int main(){ int a[6][6],k; cin>>m>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ k=(j+m)%3; cin>>a[i][k]; } } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } }