This problem is in Contest(s) below:
Contest 1137:2022年暑期普及班-DP
Contest 1048:动态规划进阶