This problem is in Contest(s) below:
Contest 1321:ssk_5 函数&递归