


カーテンがだんだん閉まっていくイメージです。
右端が最小値になる場合と、頂点が最小値になる場合に分けて解答を作りましょう。
It is an image of the curtain gradually closing.
Let's make a separate answer for the case where the right edge is the minimum value and when the vertex is the minimum value.

カーテンがだんだん閉まっていくイメージです。
右端が最小値になる場合と、頂点が最小値になる場合に分けて解答を作りましょう。
It is an image of the curtain gradually closing.
Let's make a separate answer for the case where the right edge is the minimum value and when the vertex is the minimum value.
コメントをお書きください