This problem is in Contest(s) below:
Contest 1245:2025练习1
Contest 1061:1118少年宫五