This problem is in Contest(s) below:
Contest 2064:2025夏令营算法基础D班结营测试
Contest 2066:干脆面物语(全)