This problem is in Contest(s) below:
Contest 4971:基础C-第4课-回家作业(童)
Contest 5042:基础C-第4课-回家作业(崔)