This problem is in Contest(s) below:
Contest 4001:北海提高
Contest 3986:基础A-第12课-课堂练习(崔)