This problem is in Contest(s) below:
Contest 5545:提高C-寒假2课-课堂练习
Contest 5646:提高C-寒假2课-课堂练习(童)