2013年5月25日

这道八数码老过不了 judge终于肯给我TLE了。。。还是不能AC啊

摘要: 题目链接:【eight puzzle】http://acm.uestc.edu.cn/problem.php?pid=1490&cid=213我的解题想法:双向BFS+暴力判重(表示不怎么会自己搞hash的孩纸伤不起)#include<cstdio>#include<string>using namespace std;long int head[2],tail[2];string que[2][100000];long int answer[2][200000];string inst,stand;int judge,i,j;char d;bool flag; 阅读全文

posted @ 2013-05-25 08:09 BWB 阅读(172) 评论(0) 推荐(0) 编辑

导航