This problem is in Contest(s) below:
Contest 1023:2019CSP普及模拟赛D
Contest 1057:2021小学市赛模拟二