This problem is in Contest(s) below:
Contest 1155:2024秋季基础班作业
Contest 1197:2026春季入门班练习