| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 49737 | zouqinghua | 矩阵交换行 | C++ | Runtime Error | 0 MS | 244 KB | 326 | 2024-07-24 12:38:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,x; int a[5][5]; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cin>>a[i][j]; } } cin>>n>>m; for(int j=0;j<5;j++) {swap(n,m);} for(int i=0;i<5;i++){ for(int j=0;j<5;i++){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }