fky

FKY 2023-08-11 10:39:02 6 返回题目

#include<bits/stdc++.h> using namespace std; int main(){ int a[5][5]; int m,n; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cin>>a[i][j]; } } cin>>m>>n; int temp; for(int j=0;j<5;j++){ temp=a[m-1][j]; a[m-1][j]=a[n-1][j]; a[n-1][j]=temp; } for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ cout<<a[i][j]<<" "; } cout<<endl; }
return 0; }

{{ vote && vote.total.up }}