This problem is in Contest(s) below:
Contest 5346:AK张老师 入门A班 穷举法 家庭作业
Contest 5355:AK张老师 入门B班 穷举法 家庭作业