摘要: #include<bits/stdc++.h>using namespace std;int n,k;vector<int>son[1000007];int dp[1000007],depth[1000007],ans[1000007];//dp【i】表示离i最近的叶子节点距离i的深度,depth【 阅读全文
posted @ 2018-10-23 23:16 sewage 阅读(138) 评论(0) 推荐(0)