This problem is in Contest(s) below:
Contest 6136:AK郦老师 算法初级B班 递推进阶 家庭作业
Contest 6120:AK张老师 算法初级A班 递推和vec