Shirlies
宁静专注认真的程序媛~
摘要: 虽然多了一层,但是还是比较基础的搜索题目,在T时间内,其实只要求出最小时间就可以了,然后比较两者,既然是求最小的时间,那么用广搜就比较好了……#include <iostream>#include <cstring>#include <queue>using namespace std;struct node{int f;int x,y;}n1;char map[2][12][12];int vis[2][12][12];int n,p,t,time;int dx[4]={-1,0,1,0};int dy[4]={0,1,0,-1};int fp,xp,yp 阅读全文
posted @ 2012-02-21 19:13 Shirlies 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 参考http://blog.sina.com.cn/s/blog_622684e80100n3gz.html 阅读全文
posted @ 2012-02-21 11:59 Shirlies 阅读(167) 评论(0) 推荐(0) 编辑