This problem is in Contest(s) below:
Contest 1413:第17届蓝桥杯软件赛校赛
Contest 1410:暑假练习-33题,任意30题即可。