This problem is in Contest(s) below:
Contest 1362:训练
Contest 1135:入门训练2
Contest 1294:2018新小六加题(1)
Contest 1080:C++入门3
Contest 1177:初一小朋友训练
Contest 1365:训练111