摘要:
题目链接经典的8数码问题,不要求是最少步数。View Code 1 #include <stdio.h> 2 #include <string.h> 3 #include <queue> 4 #define N 362881 5 #define ABS(x) ((x)>0?(x):(-(x))) 6 using namespace std; 7 const int dx[4]={0,0,1,-1}; 8 const int dy[4]={1,-1,0,0}; 9 char DIR[4]={'r','l','d 阅读全文
posted @ 2012-05-11 15:33
BeatLJ
阅读(679)
评论(0)
推荐(0)

浙公网安备 33010602011771号