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