HDU_5094_dfs】的更多相关文章

http://acm.hdu.edu.cn/showproblem.php?pid=5094 bfs,vis[x][y][z],z表示钥匙的状态,用二进制来表示,key[x][y]储存当前位置钥匙的二进制表示. 注意起始点有钥匙的情况. #include<iostream> #include<cstdio> #include<string> #include<cstring> #include<algorithm> #include<que…