求助!!!
  • 板块灌水区
  • 楼主Zerodreams
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/3/17 13:56
  • 上次更新2024/3/17 15:26:25
查看原帖
求助!!!
1247445
Zerodreams楼主2024/3/17 13:56

求助!!!!

蛇形方阵

题目描述 By way of example, for pastures of size N=3 and N=4, here are the routes Bessie should use:

   1 2 3

   8 9 4  

   7 6 5 

   n=4

1 2 3 4

12 13 14 5

11 16 15 6

10 9 8 7 输入格式 A single integer: N (1 <= N <= 750)

输出格式 Lines 1..N: N space-separated integers

样例数据 input

3 output

1 2 3

8 9 4

7 6 5

题都看不懂我怎么写!!!

本人蒟蒻qwq

2024/3/17 13:56
加载中...