Run ID:86470
提交时间:2024-07-25 15:50:46
#include<iostream> using namespace std; int main(){ int a[5][5]; int n,m,x,y; cin >> n >> m >> x >> y; for(int i=0;i<=5;i++){ for(int j=0;j<=5;j++){ cin >> a[i][j]; } } for(int i=0;i<=5;i++){ for(int j=0;j<=5;j++){ if(i + 1 == x){ cout << a[y-1][j] << " "; } else if(i + 1 == x){ cout << a[x-1][j] << " "; } else{ cout << a[i][j] << " "; } } } }