If a matrix satisfies the following conditions, we call it a silver matrix.
1. The dimensions of the matrix are n * n.
2. All its elements belong to the set S = {1, 2, 3, …, 2n - 1}.
3. For every integer i (1 <= i <= n), all elements in the i-th row and i-th column make the set {1, 2, 3, …, 2n - 1}.
For example:
4 * 4 silver matrix:
1 2 5 6
3 1 7 5
4 6 1 2
7 4 3 1
1. The dimensions of the matrix are n * n.
2. All its elements belong to the set S = {1, 2, 3, …, 2n - 1}.
3. For every integer i (1 <= i <= n), all elements in the i-th row and i-th column make the set {1, 2, 3, …, 2n - 1}.
For example:
4 * 4 silver matrix:
1 2 5 6
3 1 7 5
4 6 1 2
7 4 3 1