This problem is in Contest(s) below:
Contest 1829:2024语言基础班第二天
Contest 1859:基础课程二