POJ 1661 Help Jimmy——樹形dp

把端點看作節點,把時間看作邊的權值創建狀態轉移樹,而後記憶化搜索一遍便可,建樹過程很麻煩,權當是個模擬題了、、、ios #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #include <vector> #include <map> using namespace std; typedef
相關文章
相關標籤/搜索