文件名称: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.
相关搜索: horse chess recursive
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建 文本文档 (2).txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.