Rosetta Problems

Cartesian Tree

https://judge.yosupo.jp/problem/cartesian_tree