2260: 数字走向2

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:79 Solved:1

Description

 

  构成一个nn列的蛇形矩阵,规律详见样例。

Input

 一个正整数N

Output

 按要求输出,场宽为5

Sample Input Copy

3

Sample Output Copy

    1    6    7

    2    5    8

    3    4    9

Source/Category