This problem is in Contest(s) below:
Contest 1052:树状图数组专题训练(一)