#2666. the snake
the snake
Cannot parse: Cannot read properties of null (reading 'length')
the snake
题目描述
在n*n方陈里填入1,2,...,n*n,要求填成蛇形。例如n=4时方陈为:
10 11 12 1
9 16 13 2
8 15 14 3
7 6 5 4
输入说明
直接输入方陈的维数,即n的值。(n<=100)
输出说明
输出结果是蛇形方陈。
样例
输入
3
输出
7 8 1
6 9 2
5 4 3