This problem is in Contest(s) below:
Contest 100000632:《算法笔记》11.8小节——动态规划专题->总结