This problem is in Contest(s) below:
Contest 1038:CCC Junior 算法基础训练
Contest 1039:C++L1阶段作业
Contest 1041:JavaL1阶段作业