Run ID:154536

提交时间:2026-05-30 15:02:12

#include<bits/stdc++.h> using namespace std; int main() { long long a[100][100]; long long s,d; cin>>s>>d; for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ cin>>a[i][j]; } } for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ if(i==d){ cout<<a[s][j]<<" "; }else{ if(i==s){ cout<<a[d][j]<<" "; }else{ cout<<a[i][j]<<" "; } } } cout<<endl; } return 0; }