Loading repovive.com/contests/10000/problems/D4B
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
You are given an matrix . Every element of the matrix is an integer between and .
It is guaranteed that there exists a permutation such that the values
are pairwise distinct.
Choose at least cells of the matrix such that:
It can be proven that such a choice always exists.
First, output an integer , the number of chosen cells.
Then output pairs. The -th pair denotes that the cell in row and column is chosen.
If there are several valid answers, output any of them.
The cells , , and contain the distinct values , , and . They also use different rows and different columns, so the output is valid.