This problem is in Contest(s) below:
Contest 1045:2018 ACM Summer Training - Day 21 线段树 RMQ