【树形DP】hdu 1520 Anniversary party
http://acm.hdu.edu.cn/showproblem.php?pid=1520
#include
#include
#include
#include
using namespace std;
const int NM=6005;
int dp[NM][2],f[NM],a[NM];
vectorv[NM];
int max(int x,int y){
ret
原创
2014-05-23 16:51:59 ·
495 阅读 ·
0 评论