V. 练63.3 迂回方阵

    Type: RemoteJudge 1000ms 64MiB

练63.3 迂回方阵

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

输入整数NN,输出相应方阵。

输入格式

输入一个整数 nn1n181≤n≤18

输出格式

一个方阵,每个数字的场宽为44

样例

输入
5

输出

  17  18  19  20  21
  10  11  12  13  22
   5   6   7  14  23
   2   3   8  15  24
   1   4   9  16  25

2024吉利学院算道蓝桥杯培训

Not Attended
Status
Done
Rule
IOI(Strict)
Problem
55
Start at
2024-11-29 13:30
End at
2024-12-29 13:30
Duration
720 hour(s)
Host
Partic.
30