This problem is in Contest(s) below:
Contest 1236:递归和回溯
Contest 1310:递归和回溯
Contest 1502:递归和回溯练习