摘要: Description: 给定一颗n个点的树,有m个询问,求任意两点路径上点权第k小的点 Hint: $n,m using namespace std; const int mxn=6e5+5; struct ed { int to,nxt; }t[mxn 1; if(val 1; if(k=0; 阅读全文
posted @ 2019-02-12 10:33 cloud_9 阅读(122) 评论(0) 推荐(0)