ACM-树形DP
文章平均质量分 66
4546love
这个作者很懒,什么都没留下…
展开
-
HDU 2196 Computer
http://acm.hdu.edu.cn/showproblem.php?pid=2196#includeusing namespace std;#define N 10001struct node{ int next,v,w; node(){}; node(int原创 2011-07-25 11:35:16 · 1490 阅读 · 1 评论 -
HDU 3848 CC On The Tree
http://acm.hdu.edu.cn/showproblem.php?pid=3848#include#define N 10005using namespace std;#define inf 0x7fffffffstruct node{ int next,v,原创 2011-07-25 12:46:20 · 666 阅读 · 0 评论 -
HDU 1520 Anniversary party
http://acm.hdu.edu.cn/showproblem.php?pid=1520#includeusing namespace std;#define N 6001struct node{ int father; int child; int brothe原创 2011-07-16 19:49:31 · 870 阅读 · 0 评论 -
HDU 1516 The more, The Better
http://acm.hdu.edu.cn/showproblem.php?pid=1561#include#includeusing namespace std;#define N 201vector E[N];int dp_temp[N][N],dp[N][N];原创 2011-07-17 15:47:01 · 896 阅读 · 0 评论 -
hdu 1011 Starship Troopers
http://acm.hdu.edu.cn/showproblem.php?pid=1011#includeusing namespace std;#define N 101int w[N],val[N];int dp[N][N];int n,m;struct nod原创 2011-07-18 13:25:34 · 1094 阅读 · 0 评论