【例63.1】 蛇形填数
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.
Description
Fill an matrix with numbers , , , ..., in a snake-like pattern. For example, when , the matrix looks like:
10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4
Where $n \le 20$.
Input Format
Input .
Output Format
Output the matrix as described. lines, with numbers in each line separated by a single space.
Sample
410 11 12 1
9 16 13 2
8 15 14 3
7 6 5 4
20251108C班作业(6)
- Status
- Done
- Problem
- 4
- Open Since
- 2025-11-8 0:00
- Deadline
- 2025-11-16 23:59
- Extension
- 24 hour(s)