Fork me on GitHub
摘要: 题目: "P5124 [USACO18DEC]Teamwork" 解析: 动态规划,设$f[i]$表示到第$i$位的最大值,我们枚举i之前的j个位置$(j using namespace std; const int N = 1e6 + 10; int n, m, num; int a[N], f[ 阅读全文
posted @ 2019-11-03 09:28 Chrety 阅读(244) 评论(0) 推荐(0) 编辑