摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1520 1 #include <iostream> 2 using namespace std; 3 const int maxn = 6000 + 10; 4 struct Node{ 5 int not;//表示不取时的价值 6 int attend;//表示取时的价值 7 int child; 8 int brother; 9 int father;10 }Tree[maxn];11 int d[maxn];12 int DP[maxn][2];13 int n;... 阅读全文
posted @ 2013-04-24 19:33 zx雄 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://www.cppblog.com/notonlysuccess/archive/2009/05/11/82614.html 阅读全文
posted @ 2013-04-24 16:08 zx雄 阅读(112) 评论(0) 推荐(0) 编辑