This problem is in Contest(s) below:
Contest 1456:搜索练习(巩固)
Contest 1066:搜索练习
Contest 1478:算法班第二天(全排列、深搜)