This problem is in Contest(s) below:
Contest 1006:递推算法