2018年10月29提高組 T2 B

大意 給定一棵樹,求出一條路徑 p p p,使得其的權值 S ≤ k ≤ E S\leq k\leq E S≤k≤E 思路 正解點分治 d f s dfs dfs代碼(70) #include<cstdio> #include<algorithm> #define ri register int using namespace std;int n,S,E,l[100001],x,y,w,tot,m
相關文章
相關標籤/搜索