This problem is in Contest(s) below:
Contest 1074:蓝桥杯测试
Contest 1041:JavaL1阶段作业