This problem is in Contest(s) below:
Contest 1060:2024-WE 百题大战05:简单穷举
Contest 1066:程序设计五星活动认证赛-2024