Run ID:65096

提交时间:2024-01-23 18:31:17

#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main(){ int n=6,m=6,k=0,j=0,x=0,c=0; cin>>x>>c; int v[n][m]; for(k=1;k<n;k++){ for(j=1;j<m;j++) cin>>v[k][j];} for(k=1;k<n;k++){ for(j=1;j<m;j++) if(k==x) cout<<v[c][j]<<" "; else if(k==c) cout<<v[x][j]<<" "; else cout<<v[k][j]<<" "; } cout<<endl; } return 0; }