摘要: 1 #include 2 #include 3 using namespace std; 4 const int maxn = 105; 5 struct Node 6 { 7 int father; 8 int level; 9 bool NoChild; 10 }; 11 12 Node v[maxn]; 13 int level[maxn]; 1... 阅读全文
posted @ 2018-05-03 22:03 ouyang_wsgwz 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 后来提交一波的时候,最后一组数据超时,于是改用贪心,排序一遍过的: 阅读全文
posted @ 2018-05-03 21:09 ouyang_wsgwz 阅读(106) 评论(0) 推荐(0) 编辑