POJ 3140 Contestants Division——樹形dp

m的大小是哄人的,其實m恆等於n-1,而後就是很普通的樹形dp了,注意用long longios #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; const ll INF = 1e12; const int
相關文章
相關標籤/搜索