2012年6月4日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1035搜搜搜View Code #include <iostream>using namespace std ;char map[11][11] ;int dp[11][11] ;int n,m ;int ans,loop ;int flag ;void dfs(int x,int y,int cnt){ if(x<0 || x>=n || y<0 || y>=m) { flag=0 ; ans=cnt ; return ; } if(dp[x... 阅读全文
posted @ 2012-06-04 23:30 LegendaryAC 阅读(186) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1312从这老题开始吧View Code #include <iostream>#include <queue>using namespace std ;char map[25][25];int ans,n,m;typedef struct L{ int x,y;}L;void bfs(int x,int y){ queue <L> q ; int tab[][2]={1,0,-1,0,0,1,0,-1}; L point,go,front; point.x=x; point 阅读全文
posted @ 2012-06-04 18:29 LegendaryAC 阅读(160) 评论(0) 推荐(0) 编辑
 
摘要: 本菜狗决定好好练搜索了,发现不练好搜索学什么都不安心,用现在的付出补寒假欠的帐吧。 阅读全文
posted @ 2012-06-04 17:25 LegendaryAC 阅读(123) 评论(0) 推荐(0) 编辑