| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 63648 | 殷震轩 | 矩阵行交换 | C++ | Accepted | 2 MS | 276 KB | 389 | 2024-01-19 14:49:41 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,A[6][6]; cin>>n>>m; for(int i=1;i<6;i++){ for(int j=1;j<6;j++){ cin>>A[i][j]; } } for(int i=1;i<6;i++){ int u=A[m][i]; A[m][i]=A[n][i]; A[n][i]=u; } for(int i=1;i<6;i++){ for(int j=1;j<6;j++){ cout<<A[i][j]<<" "; } cout<<endl; } return 0; }