This problem is in Contest(s) below:
Contest 1036:YSA Program test(CCC)
Contest 1040:CCC Junior 实战刷题