This problem is in Contest(s) below:
Contest 1878:课后扩展
Contest 1935:语法基础练习(3)