This problem is in Contest(s) below:
Contest 1800:线段树l练习
Contest 1632:csp-j2022
Contest 2071:区一中普及组真题练习