提交时间:2019-12-20 19:44:43
运行 ID: 3584
#include<iostream> using namespace std; int main(){ int y,ry,mm,nn; cin>>y>>ry; int youku[233][233]; for(int E=1;E<=y;E++){ for(int r=1;r<=ry;r++){ cin>>youku[E][r]; } } cin>>mm>>nn; for(int t=1;t<=y;t++){ int o; o=youku[t][mm]; youku[t][mm]=youku[t][nn]; youku[t][nn]=o; } for(int t=1;t<=y;t++){ for(int u=1;u<=ry;u++){ cout<<youku[t][u]<<" "; } cout<<endl; } return 0; }