文件名称:tmc
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.5kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在国际象棋中,马的走法与中车象棋类似,即俗话说的“马走日”,下图所示即国际象棋中马(K)在一步能到达的格子(其中黑色的格子是能到达的位置)。
现有一200*200大小的国际象棋棋盘,棋盘中仅有一个马,给定马的当前位置(S)和目标位置(T),求出马最少需要多少跳才能从当前位置到达目标位置。
-In chess, in the way of the horse and cart similar to chess, that is, the saying goes "walking day", as shown in the following figure is horse chess (k) in one can reach the grid (black Plaid was able to reach the location). Existing 200*200 the size of the chess board, only one horse in the Board, given the current position of the horse (s) and destination (t), and hands at least need to jump to from the current position to the target location.
现有一200*200大小的国际象棋棋盘,棋盘中仅有一个马,给定马的当前位置(S)和目标位置(T),求出马最少需要多少跳才能从当前位置到达目标位置。
-In chess, in the way of the horse and cart similar to chess, that is, the saying goes "walking day", as shown in the following figure is horse chess (k) in one can reach the grid (black Plaid was able to reach the location). Existing 200*200 the size of the chess board, only one horse in the Board, given the current position of the horse (s) and destination (t), and hands at least need to jump to from the current position to the target location.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tmc.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.