摘要: 题目链接: "https://www.luogu.com.cn/problem/P2627" 解题思路: 定义状态 $f[i]$ 表示:"前 $i$ 只奶牛,且当 $i t$ 时, $$f[i] = \max_{j \in [i k 1, i 1]}(f[j] + \sum_{x=j+2}^i e[ 阅读全文
posted @ 2020-02-08 19:15 quanjun 阅读(218) 评论(0) 推荐(0)