This problem is in Contest(s) below:
Contest 1001:YSA程序设计邀请赛
Contest 1068:Mock ccc s 21-22
Contest 1061:031中级-新手上路