This problem is in Contest(s) below:
Contest 1046:南康中学创新书院2023级信息学测试(课外)
Contest 1051:南康中学2024级创新班信息学测试(课外)