摘要:
hdu1372: http://acm.hdu.edu.cn/showproblem.php?pid=1372题意:一张8*8棋盘,横坐标用a~h表示,纵坐标用1~8表示,每对数据给出马的初始位置和目标位置,问需要多少步能到达code:#include<iostream>#include<cstdio>#include<cstdlib>#include<algorithm>using namespace std;int dx[]={-2,2,-1,1,-2,2,-1,1};int dy[]={1,-1,-2,-2,-1,1,2,2};int q[ 阅读全文
posted @ 2012-07-26 12:17
acmer-jun
阅读(176)
评论(0)
推荐(0)

浙公网安备 33010602011771号