出處:https://onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=3720
解題策略:segment tree,使用set旋轉元素並更新區間的最小值,使用query查詢區間最小值
參考程式碼