PROGRAMMING:Odd order magic matrix
For each positive integer odd number n, output a NxN matrix (odd order magic matrix). The matrix elements are composed of 1 ~ n square integers, and the sum of each row, column and main diagonal of the matrix are equal. Tip: the order of odd order magic matrix is 1, fill in the middle of the first row, fold up the matrix and regard it as connected up and down, left and right, and fill in the following numbers in the upper right corner of the previous number (not filled out) or the next row of the same column. The best use of dynamic storage allocation.
###Input format:
Positive integer odd n
###Output format:
In the array, integers occupy 5 bits, and each matrix is followed by a blank line, that is, each matrix needs to output an additional newline character, and the last line contains 2 newline characters.
###Input example:
```in
seven
```
###Output example:
The corresponding output is given here. For example:
```out
30 39 48 1 10 19 28
38 47 7 9 18 27 29
46 6 8 17 26 35 37
5 14 16 25 34 36 45
13 15 24 33 42 44 4
21 23 32 41 43 3 12
22 31 40 49 2 11 20
```
answer:If there is no answer, please comment
###Input format:
Positive integer odd n
###Output format:
In the array, integers occupy 5 bits, and each matrix is followed by a blank line, that is, each matrix needs to output an additional newline character, and the last line contains 2 newline characters.
###Input example:
```in
seven
```
###Output example:
The corresponding output is given here. For example:
```out
30 39 48 1 10 19 28
38 47 7 9 18 27 29
46 6 8 17 26 35 37
5 14 16 25 34 36 45
13 15 24 33 42 44 4
21 23 32 41 43 3 12
22 31 40 49 2 11 20
```
answer:If there is no answer, please comment