摘要: A Alien Sunset 暴力枚举t E L include using namespace std; typedef long long ll; const int maxn = 1e6+5; struct node{ int x,y,h; ll d; void in(){ scanf("%d 阅读全文
posted @ 2017-11-12 18:48 foreignbill 阅读(122) 评论(0) 推荐(0) 编辑
摘要: "poj 1741" 1.选取一个点,把无根树变成有根树。通过树形dp的方式选择。用son记录点的子树大小,用F算出最大的子树,当F[x] include include include using namespace std; typedef long long ll; const int max 阅读全文
posted @ 2017-11-12 11:28 foreignbill 阅读(126) 评论(0) 推荐(0) 编辑
摘要: D F 阅读全文
posted @ 2017-11-12 00:56 foreignbill 阅读(107) 评论(0) 推荐(0) 编辑