Rosetta Problems

Min and Max at the edge

https://atcoder.jp/contests/arc181/tasks/arc181_e