蛇形方阵
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.
题目描述
输入一个正整数n,生成一个n*n的蛇形方阵(具体见样例)。
输入
一行一个正整数n,1≤n≤20。
输出
共n行,每行n个正整数,每个正整数占5列。
5
1 2 6 7 15
3 5 8 14 16
4 9 13 17 22
10 12 18 21 23
11 19 20 24 25
假期知识点测试
- Status
- Done
- Rule
- Ledo
- Problem
- 4
- Start at
- 2026-8-11 9:45
- End at
- 2026-8-11 11:45
- Duration
- 2 hour(s)
- Host
- Partic.
- 3