1251: 螺旋方阵 例题
[Creator : ]
Description
用数字1,2,3,4,...,n*n这n^2个数蛇形填充规模为n*n的方阵。
Input
输入一个数n。
Output
输出n行n列的蛇形数组,两个数中间只需空一个空格即可。
Sample Input Copy
4
Sample Output Copy
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7
HINT
对于100%的数据,1≤n≤100。
acg
yzs 60874
acg
yzs 60874