Qiuqiqiu  
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步!

2012年7月11日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2640View Code 1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 const int N=110; 6 int n,m; 7 int mz[N]; 8 int d[N][260][260]; 9 void dfs(int p,int s0,int s1,int s2,int c,int r)10 {11 if(p>=m-1)12 {13 if(c>d[r][s1][s2]) d[ 阅读全文
posted @ 2012-07-11 16:43 Qiuqiqiu 阅读(237) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2280View Code 1 #include <cstdio> 2 using namespace std; 3 4 const int INF=110; 5 int n,m=5; 6 int d[1010][40]; 7 int mz[1010]; 8 void dfs(int p,int s,int t,int c,int r) 9 {10 if(p>=m)11 {12 if(c<d[r][t]) d[r][t]=c;13 return;14 ... 阅读全文
posted @ 2012-07-11 15:41 Qiuqiqiu 阅读(139) 评论(0) 推荐(0) 编辑