ACM-BFS
文章平均质量分 80
4546love
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 1254 推箱子
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1254<br />还是要细心那!!<br />#include<iostream> #include<queue> using namespace std; #define N 8 int map[N][N]; bool h[N][N][N][N]; bool mark[N][N]; int n,m; struct node { int px,py; int bx,by; int原创 2011-04-27 09:20:00 · 1086 阅读 · 0 评论 -
HDU 1252 Hike on a Graph
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1252<br />题意:给你一幅完全图,再给你三个盘,目的是把这三个盘移动到一个点上,输出最少步数!盘移动的时候有要求,比如移第一个盘,把1盘移动到2这个位置,(1,2)这个点有颜色标记,另外两个盘比如说在3,4两点,那么1盘能移动到2这个点的条件是(1,2)这个点的颜色要与(3,4)这点的颜色相同!!(诶,英文太差,题意都搞不懂)<br />#include<iostream> #include<queue原创 2011-04-27 12:43:00 · 1443 阅读 · 0 评论 -
HDU Push Box
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1732<br />#include<iostream> #include<queue> using namespace std; #define N 8 struct node { int bx[3],by[3]; int x,y; int step; }; bool h[N][N][N][N][N][N][N][N]; int dir[4][2]={-1,0,0,原创 2011-05-04 11:50:00 · 810 阅读 · 0 评论 -
HDU 1728 一条路走到底
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1728<br />#include<iostream> #include<queue> using namespace std; #define N 101 char map[N][N]; int n,m,fx,fy,ex,ey; int c; bool h[N][N]; int dir[4][2]={-1,0,0,-1,1,0,0,1}; struct node { int x,y;原创 2011-05-03 21:26:00 · 808 阅读 · 0 评论 -
HDU 非常可乐
<br />http://acm.hdu.edu.cn/showproblem.php?pid=1495<br />#include<iostream> #include<queue> using namespace std; #define N 101 int a,b,c; struct node { int a,b,c; int step; }; bool h[N][N][N]; bool find(node p) { if(p.a==p.b&&p.a==a/2)原创 2011-05-03 21:52:00 · 1630 阅读 · 0 评论 -
HDU 2653 Waiting ten thousand years for Love
http://acm.hdu.edu.cn/showproblem.php?pid=2653#include #include using namespace std; #define N 81 bool h[N][N][N]; int dir[4][2]={-1,0,0,-1,原创 2011-07-08 10:41:00 · 1063 阅读 · 0 评论 -
HDU 3848 CC On The Tree
http://acm.hdu.edu.cn/showproblem.php?pid=3848#include #include #include #include #include #define N 10001 using namespace std; struct node{原创 2011-07-21 10:47:02 · 1112 阅读 · 0 评论
分享