摘要: 搜索#include #include #include #include using namespace std;#define maxn 15int n;int map[maxn][maxn];bool visr[maxn][maxn], visc[maxn][maxn], visb[maxn]... 阅读全文
posted @ 2013-06-22 15:58 金海峰 阅读(542) 评论(0) 推荐(0) 编辑
摘要: dp#include #include #include using namespace std;#define MAX_COACH_NUM 50005int coach_num;int coach[MAX_COACH_NUM];int f[4][MAX_COACH_NUM];int sum[MAX... 阅读全文
posted @ 2013-06-22 15:50 金海峰 阅读(154) 评论(0) 推荐(0) 编辑