设为首页 加入收藏

TOP

hdu 1364 Illusive Chase (dfs)
2015-07-20 17:34:36 来源: 作者: 【 】 浏览:2
Tags:hdu 1364 Illusive Chase dfs
# include 
  
   
# include 
   
     # include 
    
      # include 
     
       using namespace std; struct node { int x1; int x2; char x[5]; }; struct node a[100010]; int map[110][110]; int n,m,k; bool judge (int xx1,int yy1) { if(xx1<1||xx1>n||yy1<1||yy1>m) return 0; return 1; } int dfs(int x,int y,int cot) { int i,j; int fx,fy; if(cot==k) return true; for(i=1; i
      
       >a[k].x; k++; } cot1=0; for(i=1; i<=n; i++) { for(j=1; j<=m; j++) { if(map[i][j]==0) { if(dfs(i,j,0)) cot1++; } } } printf("%d\n",cot1); } } return 0; } 
      
     
    
   
  

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇HDOJ 3966 Aragorn's Story 下一篇BZOJ 1433 ZJOI 2009 假期的宿舍 ..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·在 Redis 中如何查看 (2025-12-26 03:19:03)
·Redis在实际应用中, (2025-12-26 03:19:01)
·Redis配置中`require (2025-12-26 03:18:58)
·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)