This problem is in Contest(s) below:
Contest 1226:2016.3P长训班-2第8课作业
Contest 1434:cz中级班第4课作业
Contest 1463:嘉小初级班课后练习2
Contest 1657:2019春C++中级班第3课作业
Contest 1393:2017暑期C++初级第11课作业(夏溪)