| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 3547 | 徐杨奕 | 数组元素对调 | C++ | Accepted | 100 | 2 MS | 296 KB | 379 | 2019-12-20 17:48:16 |
#include<iostream> using namespace std; int main(){ int n[101][101],m,a,k,s; cin>>m>>a; for(int i=1;i<=m;i++){ for(int j=1;j<=a;j++){ cin>>n[i][j]; } } cin>>k>>s; for(int i=1;i<=m;i++){ int t=n[i][k]; n[i][k]=n[i][s]; n[i][s]=t; } for(int i=1;i<=m;i++){ for(int j=1;j<=a;j++){ cout<<n[i][j]<<' '; } cout<<endl; } return 0; }