摘要: Computer (树形dp) 给你一棵树,问你每个点能到达的最远距离。N include include using namespace std; const int maxn=10005; class Graph{ public: struct Edge{ int to, next, v; Gr 阅读全文
posted @ 2017-10-27 18:57 pechpo 阅读(335) 评论(0) 推荐(0)
摘要: 没有上司的舞会 (题目已略) 表示这种题目唯一的坑点就是输入。。居然是多组数据! c++ include include include using namespace std; const int maxn=6005; class Graph{ public: struct Edge{ int t 阅读全文
posted @ 2017-10-27 13:16 pechpo 阅读(155) 评论(0) 推荐(0)