#Z15201. 矩阵交换行
矩阵交换行
Description
Given a 5×5 matrix (mathematically, an r×c matrix is a rectangular array composed of r rows and c columns of elements), swap the nth row and the mth row, then output the result after the swap.
Input Format
The input consists of 6 lines. The first 5 lines represent each row of the matrix, with elements separated by a single space.
The 6th line contains two integers m and n, separated by a single space (1 ≤ m, n ≤ 5).
Output Format
Output the matrix after the swap. Each row of the matrix should occupy a single line, with elements separated by a single space.
1 2 2 1 2
5 6 7 8 3
9 3 0 5 3
7 2 1 4 6
3 0 8 2 4
1 5
3 0 8 2 4
5 6 7 8 3
9 3 0 5 3
7 2 1 4 6
1 2 2 1 2