This problem is in Contest(s) below:
Contest 1013:ds201901
Contest 1064:训练2021