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
相关文章
相关标签/搜索