提交时间:2024-03-29 15:55:09
运行 ID: 44256
#include<bits/stdc++.h> using namespace std; int jz[5][5]; int main(){ for(int i = 0;i < 5;i ++)for(int j = 0;j < 5;j ++)cin>>jz[i][j]; int a,b;cin>>a>>b; swap(jz[a-1],jz[b-1]); for(int i = 0;i < 5;i ++){for(int j = 0;j < 5;j ++)cout<<jz[i][j]<<' ';cout<<endl;} return 0; }