摘要: ##题目 https://www.luogu.com.cn/problem/P2736 ##思路 一道简单的DP题,注意到状态的转移比较复杂,推荐使用记忆化搜索。注意递归返回条件的优先级顺序(我写挂了2次TAT)。 ##代码 #include<cstdio> #include<cstdlib> #i 阅读全文
posted @ 2020-11-23 10:55 文艺平衡树 阅读(83) 评论(0) 推荐(0) 编辑