This problem is in Contest(s) below:
Contest 1516:递归练习
Contest 1384:递归_YC
Contest 1385:初一小朋友的递归练习
Contest 1514:递归及dfs_YC
Contest 1212:递归基础
Contest 1379:递归基础入门