OTTFF's Blog
Home
Templates
Contests
Solutions
Notes
2400
[CF] E. Vasya and Binary String - Educational Codeforces Round 59 (Rated for Div. 2)
Solutions
Codeforces
贪心
动态规划
区间dp
背包dp
2400
Med+
2025-02-18
https://codeforces.com/contest/1107/problem/E 题目大意 给出一个 $n$ 长的 $01$ 串 $S$ 和数组 $a$。每次操作可以从中删除一个连续的,相同字符的段,并把剩余的段按顺序连起来。每次删掉 $len$ 长的段的收益为 $a_{len}$,问最大收益是多少。 $1 \le n \le 100$。$1
…