樹形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
相關文章
相關標籤/搜索