随笔分类 -  搜索

广搜
摘要:#include #include#includeusing namespace std;struct node{int x,y;node(int x = 0,int y = 0){ this -> x = x; this -> y = y; }};queue A;int n,m,t;int xx,... 阅读全文

posted @ 2015-07-10 16:45 AC_WQYYY 阅读(152) 评论(0) 推荐(0)

开始了 新的 ACM 搜索!
摘要:希望 现在 到 暑假 做够100到搜索题!hdu1010#include #include using namespace std;int vis[10][10];char mat[10][10];int ok,T,M,N;void visit(int i,int j,int cur){ if(cu... 阅读全文

posted @ 2015-06-16 13:46 AC_WQYYY 阅读(146) 评论(1) 推荐(1)

随便写写的搜索
摘要:今天班上的女孩子问我两道搜索题,感觉自己好快,,,好久没这么自信过了 !! 第一题是这样的给定两个数n m问把n拆成m个数相加输出方案数,只记得n,m都不大下面贴一下代码#include using namespace std; int n,k; long r; void dfs(int a,i... 阅读全文

posted @ 2015-04-25 09:16 AC_WQYYY 阅读(129) 评论(0) 推荐(1)

蓝桥之 剪格子
摘要:// 如果存在多种解答,请输出包含左上角格子的那个区域包含的格子的最小数目。 如果无法分割,则输出 0程序输入输出格式要求: 程序先读入两个整数 m n 用空格分割 (m,n#include#includeusing namespace std;int a[11][11];int vis[11][... 阅读全文

posted @ 2015-03-13 15:31 AC_WQYYY 阅读(145) 评论(0) 推荐(0)

还是闲的
摘要://蓝桥 振新中华//标题: 振兴中华 小明参加了学校的趣味运动会,其中的一个项目是:跳格子。 地上画着一些格子,每个格子里写一个字,如下所示:(也可参见p1.jpg)从我做起振 我做起振兴 做起振兴中 起振兴中华 比赛时,先站在左上角的写着“从”字的格子里,可以横向或纵向跳到相邻的格子里,但不能跳... 阅读全文

posted @ 2015-03-12 14:49 AC_WQYYY 阅读(134) 评论(1) 推荐(0)

导航