This problem is in Contest(s) below:
Contest 1469:四班练习题4
Contest 1471:2019小六练习6
Contest 1397:穷举
Contest 1052:函数
Contest 1362:训练
Contest 1054:初二小盆友
Contest 1135:入门训练2
Contest 1080:C++入门3
Contest 1177:初一小朋友训练
Contest 1482:寒假入门2班
Contest 1490:2019寒假初一(1)班入门练习(3)
Contest 1491:2019寒假初一(3)班入门练习(3)
Contest 1307:2018寒假初一新生练习(3)
Contest 1280:2018小六练习
Contest 1365:训练111