摘要: 题目链接 http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1042思路:卒子所在行枚举答案,然后dfs求解。/* * hrbust1042过河卒 * 思路:卒子所在行枚举答案,然后进行不重复深搜。 */#include<stdio.h>#include<string.h>#include<algorithm>using namespace std; char res[10]; //记录卒子所在行的状态,用来枚举当前行。char map[6][10 阅读全文
posted @ 2012-11-07 00:22 小猴子、 阅读(405) 评论(0) 推荐(0) 编辑