This problem is in Contest(s) below:
Contest 1295:动态规划1