HDU6201 transaction transaction transaction

樹形dp dp[i][0]表示從i點及其子樹中買入的最大收益(負數)html dp[i][1]表示從i點及其子樹中賣出的最大收益(正數)ios #include <bits/stdc++.h> #define INF 0x3f3f3f3f #define full(a, b) memset(a, b, sizeof a) #define FAST_IO ios::sync_with_stdio(f
相關文章
相關標籤/搜索