This problem is in Contest(s) below:
Contest 6172:北海基础班初级练习