This problem is in Contest(s) below:
Contest 1288:线段树区间最值与历史最值