设为首页 加入收藏

TOP

hdu 2821 Pusher (dfs)
2014-11-23 21:12:51 来源: 作者: 【 】 浏览:6
Tags:hdu 2821 Pusher dfs

其实只要找到一个就可以退出了 所以效率也不算很低的 可以直接DFS呀呀呀呀

#include 
#include 
#include 
#include 
#include 
#include 

using namespace std;

int dx[] = {-1,1,0,0};
int dy[] = {0,0,1,-1};

vector  ans;
int n,m;
char map[30][30];
char t[30][30];
bool found;
void copy()   //每一次都需要复制一下地图
{
    for(int i=0;i=0 && yy=0)return true;

    return false;
}

bool tag() //全部砖块都清除了
{
    for(int i=0;i 
 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++ assert()断言 下一篇hdu4291之矩阵快速幂

评论

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

·如何理解c语言指针和 (2025-12-27 01:19:11)
·为什么C标准库没有链 (2025-12-27 01:19:08)
·玩转C语言和数据结构 (2025-12-27 01:19:05)
·MySQL 基础入门视频 (2025-12-26 23:20:22)
·小白入门:MySQL超详 (2025-12-26 23:20:19)