#3587. C++-矩阵交换行

C++-矩阵交换行

Background

Description

image

Format

Input

Output

Samples

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

Limitation

1s, 1024KiB for each test case.