This problem is in Contest(s) below:
Contest 1448:11,12月初一训练
Contest 1112:递归
Contest 1119:递归入门