1940: the snake
Memory Limit:128 MB
Time Limit:1.000 S
Submit数:1
Solved数:1
Description
在n*n方陈里填入1,2,...,n*n,要求填成蛇形。例如n=4时方陈为:
10 11 12 1
9 16 13 2
8 15 14 3
7 6 5 4
Input描述
直接输入方陈的维数,即n的值。(n<=100)
Output描述
输出结果是蛇形方陈。
Sample Input Copy
3
Sample Output Copy
7 8 1 6 9 2 5 4 3
⋮