搜索资源列表
rotate
- 输入一个自然数N(2≤N≤9),要求输出如下的螺旋矩阵,即边长为N*N,元素取值为1至N*N,1在左上角,呈顺时针方向依次放置各元素。-Enter a natural number N (2 ≤ N ≤ 9), the required output of a screw matrix, i.e. a side length of N* N, elements in the range 1 to N* N, 1 in the upper left, showing the elements ar