-->
当前位置:首页 > 题库

PROGRAMMING:Clockwise matrix

Luz5年前 (2021-05-10)题库486
Read the positive integer n in 20 and output the matrix distributed clockwise. The matrix content is 1, 2,... To n * n.
###Input format:
Each instance contains a positive integer within 20.
###Output format:
A matrix distributed clockwise with 4 bits for each data.
###Input example:
```in
seven
```
###Output example:
```out
19 20 21 22 23 24 1
18 37 38 39 40 25 2
17 36 47 48 41 26 3
16 35 46 49 42 27 4
15 34 45 44 43 28 5
14 33 32 31 30 29 6
13 12 11 10 9 8 7
```







answer:If there is no answer, please comment