This problem is in Contest(s) below:
Contest 1099:递推
Contest 1102:递推
Contest 1215:递推
Contest 1050:寒假训练2