This problem is in Contest(s) below:
Contest 1419:训练222
Contest 1362:训练
Contest 1135:入门训练2
Contest 1294:2018新小六加题(1)
Contest 1419:训练222
Contest 1080:C++入门3