This problem is in Contest(s) below:
Contest 1242:动态规划dp