![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM-DFS
文章平均质量分 80
4546love
这个作者很懒,什么都没留下…
展开
-
HDU 1258 sum it up
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1258<br />#include<iostream>using namespace std;#define N 15int a[N],ans[N];int num[101],real[N];bool flag;int m,sum;void dfs(int x,int index,int s){ if(s==sum) { flag=1;原创 2011-04-27 22:03:00 · 934 阅读 · 0 评论 -
HDU 1426 数独
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1426<br />#include<iostream>using namespace std;#define N 11char map[N][N];int n;bool flag;struct node{ int x,y;}p[85];void out(){ for(int i=0;i<9;i++) { printf("%c",map[i][0]);原创 2011-04-26 17:16:00 · 722 阅读 · 0 评论 -
HDU 1307 N-Credible Mazes
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1307<br />题目半天看懂<br />#include<iostream>#include<cstdio>#include<cmath>#include<cstring>using namespace std;#define N 11struct node{ int index[N];}map[N*N*N][2];int dir[4][2]={-1,0,0,-1,1,原创 2011-04-27 10:11:00 · 1234 阅读 · 0 评论 -
HDU 1455 Sticks
http://acm.hdu.edu.cn/showproblem.php?pid=1455#include#includeusing namespace std;#define N 64int len[N];bool h[N];int n,s,l;int Count;bool flag;bool cmp(int x,int y){ return x原创 2011-06-25 13:43:00 · 2472 阅读 · 1 评论 -
HDU 2553 N皇后问题
http://acm.hdu.edu.cn/showproblem.php?pid=2553#includeusing namespace std;#define N 10int n;int ans;bool mark[N][N];bool judge(int h,int x){ int hh=h-1; int ll=x-1; while(hh>=0&&原创 2011-06-26 10:56:00 · 960 阅读 · 0 评论 -
HDU 剪枝剪枝......
<br />http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1007&cid=10579&hide=1&problem=Problem%20%20G<br />#include<iostream>using namespace std;#define N 12int map[N][N];struct node{ int x,y;}p[N+4]; //存未知点 int n,m;int cn;int c;in原创 2011-05-05 22:05:00 · 694 阅读 · 0 评论