This problem is in Contest(s) below:
Contest 1142:寒假练习181191
Contest 1299:链表
Contest 1307:循环结构