This problem is in Contest(s) below:
Contest 1552:区一中练习20220917
Contest 1535:练习(位运算、双指针、二分,倍增)
Contest 1920:七、八年级基础算法复习题目