递归与回溯
mlwhitecat
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
uva16224
#include <iostream> #include <stdio.h> #include <queue> #include <string.h> #define MAX 1010 using namespace std; char Map[MAX][MAX]; int Time[MAX][MAX]; bool vis[MAX][MAX]; ...转载 2018-05-25 11:23:03 · 160 阅读 · 0 评论 -
poj3414
//不带路径回溯,后面会补上带路径回溯的代码 #include<iostream> #include<cstring> #include<stdlib.h> #include<algorithm> #include<cmath> #include<queue> #include<cstdio> using name原创 2018-05-30 23:18:17 · 167 阅读 · 0 评论 -
poj3414
//不带路径回溯,后面会补上带路径回溯的代码 #include<iostream> #include<cstring> #include<stdlib.h> #include<algorithm> #include<cmath> #include<queue> #include<cstdio> using name原创 2018-05-30 18:16:24 · 181 阅读 · 0 评论 -
fzu2150
#include<iostream> #include<cstring> #include<algorithm> #include<string> #include<cstdio> #include<queue> using namespace std; #define inf 0x3f3f3f ...原创 2018-05-30 16:13:47 · 283 阅读 · 0 评论 -
hdu1241
题目链接 #include<iostream> #include<cstring> #include<stdlib.h> #include<algorithm> #include<cmath> #include<queue> using namespace std; char M[101][101]; int ans=0...原创 2018-05-24 09:58:02 · 158 阅读 · 0 评论 -
hdu2612
题目链接 #include<iostream> #include<cstring> #include<stdlib.h> #include<algorithm> #include<cmath> #include<vector> #include<queue> #include<cstdio&am原创 2018-05-24 09:38:16 · 274 阅读 · 0 评论 -
poj2251
#include<iostream> #include<cstring> #include<stdlib.h> #include<algorithm> #include<cmath> #include<queue> using namespace std; int l,r,c; char m[31][31][31]; bool...原创 2018-05-22 18:24:57 · 152 阅读 · 0 评论 -
poj1321
题目链接 #include<iostream> #include<cstring> #include<stdlib.h> #include<algorithm> #include<cmath> using namespace std; int n,k,ans; char m[9][9]; bool c[9]; //int dx[4]...原创 2018-05-22 17:06:12 · 425 阅读 · 0 评论 -
hdu2553
Hdu2553 #include&lt;iostream&gt; #include&lt;stdlib.h&gt; #include&lt;cstring&gt; #include&lt;math.h&gt; #include&lt;algorithm&gt; using namespace std; bool c[11],r[11],le[20]原创 2018-05-22 10:05:38 · 312 阅读 · 0 评论 -
POJ1979
题目链接 #include <iostream> #include<stdlib.h> #include<string.h> using namespace std; char m[21][21];//map bool book[21][21];//book int w,h; int sum;//answer int dx[4]={0,-1,0,1}; i...原创 2018-05-21 22:10:04 · 271 阅读 · 0 评论 -
POJ2013
题目链接 字符串成对出现,故可以按照层数来区分是第几对。 当为奇数时,n/2+1单独为一对需要特判 #include <iostream> using namespace std; int n; char name[16][28]; void work(int depth) { if((depth==n/2+1)) { if(n%2) ...原创 2018-05-21 20:52:22 · 286 阅读 · 0 评论 -
hdu1495
#include<iostream> #include<cstring> #include<stdlib.h> #include<algorithm> #include<cmath> #include<queue> using namespace std; int s,n,m; bool book[101][101][101]...原创 2018-05-30 23:18:49 · 214 阅读 · 0 评论
分享