Rosetta Problems

RMQ2

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1912