delete pics to save space
This commit is contained in:
31
history_source/信息学奥赛一本通/1.5.2.1.cpp
Normal file
31
history_source/信息学奥赛一本通/1.5.2.1.cpp
Normal file
@ -0,0 +1,31 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int jv[5][5];
|
||||
for(int i=0;i<5;i++)
|
||||
for(int j=0;j<5;j++)
|
||||
cin>>jv[j][i];
|
||||
int n,m;
|
||||
cin>>n>>m;
|
||||
n--;
|
||||
m--;
|
||||
for(int i=0;i<5;i++)
|
||||
{
|
||||
if(i!=n&&i!=m)
|
||||
for(int j=0;j<5;j++)
|
||||
cout<<jv[j][i]<<" ";
|
||||
else
|
||||
{
|
||||
if(i==m)
|
||||
for(int j=0;j<5;j++)
|
||||
cout<<jv[j][n]<<" ";
|
||||
else
|
||||
for(int j=0;j<5;j++)
|
||||
cout<<jv[j][m]<<" ";
|
||||
}
|
||||
cout<<endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user