摘要:
求树上每个点的 最远点的距离 Di 换根dp #include <iostream> #include <vector> #include <algorithm> #include <cstring> using namespace std ; const int N=1e5,M=N; int nx 阅读全文
posted @ 2023-03-02 01:29
towboat
阅读(9)
评论(0)
推荐(0)
摘要:
消除方块,同色可以消除,产生价值 (len)^2 求最后最大的价值 区间dp #include <iostream> #include<queue> #include <cstring> #define IOS std::ios::sync_with_stdio(0) using namespace 阅读全文
posted @ 2023-03-02 01:15
towboat
阅读(11)
评论(0)
推荐(0)