Spiral
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Fill the array of size n × n with ones by spiral (see sample).
Input
One odd positive integers n, not greater than 50.
Output
Print the built spiral. The middle cell must contain 0.
Examples
Input #1
Answer #1
Submissions 6K
Acceptance rate 12%