算法提高课 第一章 动态规划 树形DP

求树的直径 1072. 树的最长路径 dfs #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 10010,M = 2*N; int h[N],e[M],w[M
posted @ 2022-07-10 21:55  安河桥北i  阅读(23)  评论(0编辑  收藏  举报