This problem is in Contest(s) below:
Contest 1160:2024秋季入门班
Contest 1161:2025春季入门练习题