文件名称:pudn
介绍说明--下载内容均来自于网络,请自行研究使用
将马随即放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,……,64依次填入一个8×8的方阵,输出之。
测试数据:由读者指定。可自行指定一个马的初始位置(i,j),0<=i,j<=7。
-Ma was on the chess board 8 × 8 of the Board [8] [8] of a box, the horse moves in accordance with the rules of the mobile. Requires each box to enter only once, all around the chessboard of 64 squares. The preparation of non-recursive procedures, and run routes, and routes are obtained, the number 1,2, ... ..., 64 followed by an 8 × 8 filled the square, the output of. Test data: designated by the readers. Self-designation of a horse' s initial position (i, j), 0 < = i, j < = 7.
测试数据:由读者指定。可自行指定一个马的初始位置(i,j),0<=i,j<=7。
-Ma was on the chess board 8 × 8 of the Board [8] [8] of a box, the horse moves in accordance with the rules of the mobile. Requires each box to enter only once, all around the chessboard of 64 squares. The preparation of non-recursive procedures, and run routes, and routes are obtained, the number 1,2, ... ..., 64 followed by an 8 × 8 filled the square, the output of. Test data: designated by the readers. Self-designation of a horse' s initial position (i, j), 0 < = i, j < = 7.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建 文本文档 (2).txt