This problem is in Contest(s) below:
Contest 1364:环的问题