HDU 1520 Anniversary party (基础树形DP)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1520
#include
#include
#include
using namespace std;
const int N = 6666;
int v[N], fa[N], dp[N][2];
vector vec[N];
void dfs(int rt)
{
int l
原创
2013-08-16 17:08:34 ·
397 阅读 ·
0 评论