发表评论取消回复
相关阅读
相关 Codeforces 1215E 状压DP
题意:给你一个序列,你可以交换序列中的相邻的两个元素,问最少需要交换多少次可以让这个序列变成若干个极大的颜色相同的子段。 思路:由于题目中的颜色种类很少,考虑状压DP。设dp
相关 Codeforces 750E 线段树DP
题意:给你一个字符串,有两种操作:1:把某个位置的字符改变。2:询问l到r的子串最少需要删除多少个字符,使得这个子串含有2017子序列,并且没有2016子序列? 思路:线段树
相关 Codeforces 735E 树形DP
题意:给你一棵树,你需要在这棵树上选择一些点染成黑色,要求染色之后树中任意节点到离它最近的黑色节点的距离不超过m,问满足这种条件的染色方案有多少种? 思路:设dp\[x\]\
相关 Codeforces 722E 组合数学 DP
题意:有一个n \ m的棋盘,你初始在点(1, 1),你需要去点(n, m)。你初始有s分,在这个棋盘上有k个点,经过一次这个点分数就会变为s / 2(向上取整),问从起点到终
相关 Codeforces Round #627 (Div. 3) E. Sleeping Schedule 线性DP
题目链接:[http://codeforces.com/contest/1324/problem/E][http_codeforces.com_contest_1324_pro
相关 CodeForces - 1247E Rock Is Push【线性DP】
题目链接:[https://codeforces.com/problemset/problem/1247/E][https_codeforces.com_problemset_
相关 CodeForces - 1247D Power Products【数论】
题目链接:[https://codeforces.com/problemset/problem/1247/D][https_codeforces.com_problemset_
相关 CodeForces - 1247C p-binary 【思维】
题目链接:[https://codeforces.com/problemset/problem/1247/C][https_codeforces.com_problemset_
相关 codeforces 560E Lucas定理+dp
E. Gerald and Giant Chess time limit per test 2 seconds memory limit per test 256 me
相关 Codeforces 441E Valera and Number dp
[Valera and Number][] 感觉想了挺久的。。 dp\[ o \]\[ i \]\[ mask \] , 其中mask表示最后9位是什么。 如果mask
还没有评论,来说两句吧...