树形dp模板(C++版)

poj2342 最简单的树形dp入门,树上的最大点权独立集web #include <cstdio> #include <algorithm> #include <cstring> using namespace std; const int N=6e3+50; const int M=2e4+50; struct Edge{ int v,next; }edge[M]; int cnt,h
相关文章
相关标签/搜索