PROGRAMMING:Magic square
###Task description
```
Magic square is a magic n * n matrix. The sum of numbers in each row, column and diagonal is the same.
We can build a magic square in the following ways( (odd order)
1. Write the first number in the middle of the first line
2. The next number, all written in the upper right of the previous number:
a. If the number is in the first row, the next number is written in the last row, and the number of columns is the right column of the number
b. If the number is in the last column, the next number is written in the first column, and the number of rows is the previous row of the number
c. If the number is in the upper right corner or there is a number in the upper right corner of the number, the next number is written below the number
```
###Input format:
A number n (n < = 20)
###Output format:
Magic square of 2N-1 * 2N-1 constructed by the above method
###Input example:
```in
three
```
###Output example:
```out
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
```
###Title Source
This topic is selected from openjudge website http://noi.openjudge.cn/ch0108/22/
answer:If there is no answer, please comment
```
Magic square is a magic n * n matrix. The sum of numbers in each row, column and diagonal is the same.
We can build a magic square in the following ways( (odd order)
1. Write the first number in the middle of the first line
2. The next number, all written in the upper right of the previous number:
a. If the number is in the first row, the next number is written in the last row, and the number of columns is the right column of the number
b. If the number is in the last column, the next number is written in the first column, and the number of rows is the previous row of the number
c. If the number is in the upper right corner or there is a number in the upper right corner of the number, the next number is written below the number
```
###Input format:
A number n (n < = 20)
###Output format:
Magic square of 2N-1 * 2N-1 constructed by the above method
###Input example:
```in
three
```
###Output example:
```out
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
```
###Title Source
This topic is selected from openjudge website http://noi.openjudge.cn/ch0108/22/
answer:If there is no answer, please comment