摘要: //简单搜索,只要走遍所有可达的路径BFS版:#include "iostream"#include "cstdio"#include "memory.h"#include "queue"using namespace std;const int MAX = 22;const int dx[] = ... 阅读全文
posted @ 2014-12-07 19:07 UsedRose 阅读(166) 评论(0) 推荐(0) 编辑
摘要: //经典搜索题 #include #include using namespace std;int primelist[38] = {0,0,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1};//素数表,... 阅读全文
posted @ 2014-12-07 19:03 UsedRose 阅读(88) 评论(0) 推荐(0) 编辑