This problem is in Contest(s) below:
Contest 1191:2015.7C中级班第1-2课作业
Contest 1393:2017暑期C++初级第11课作业(夏溪)
Contest 1763:x
Contest 1741:c++中级1班第5课练习