This problem is in Contest(s) below:
Contest 1441:YC-NOIP普及