夏夜、

心若平似镜、何题不AC。

2013年11月12日

HDU 2196 Computer 树形DP

摘要: 求每个节点到距离他最远节点的距离。//#pragma comment(linker, "/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;typedef long long ll;typedef unsigned long long ull;typedef pair pii;#define pb(a) p 阅读全文

posted @ 2013-11-12 15:23 BMan、 阅读(143) 评论(0) 推荐(0)

HDU 1520 Anniversary party 树形DP

摘要: 每个节点有权值,子节点和父节点不能同时选,问最后能选的最大价值是多少? 输入格式有点傻逼。//#pragma comment(linker, "/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;typedef long long ll;typedef unsigned long long ull;type 阅读全文

posted @ 2013-11-12 12:53 BMan、 阅读(160) 评论(0) 推荐(0)

导航