This problem is in Contest(s) below:
Contest 100000636:《算法笔记》13.2小节——专题扩展->树状数组(BIT)