{"width":"100%","author_url":"https://blog.hatena.ne.jp/torus711/","categories":["AtCoder","\u30b9\u30bf\u30c3\u30af","\u3044\u3082\u3059\u6cd5"],"url":"https://torus711.hatenablog.com/entry/2024/09/22/185250","description":"\u554f\u984c\u6587 https://atcoder.jp/contests/abc372/tasks/abc372_d \u554f\u984c\u6982\u8981 $n$ \u9805\u304b\u3089\u306a\u308b\u6574\u6570\u5217 $H = \\langle H_1, H_2, \\dots, H_n \\rangle$ \u304c\u4e0e\u3048\u3089\u308c\u308b\uff0e\u5404 $i$ ($1 \\leq i \\leq n$) \u306b\u3064\u3044\u3066\uff0c\u6b21\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059 $j$ ($i \\begin{equation*} \\max_{ k \\in ( i, j ) } H_k \\end{equation*} \u5236\u7d04 $1 \\leq n \\leq 2 \\times 10^5$ $1 \\leq H_i \\leq n$ $i \\neq j \\Righ\u2026","blog_title":"torus711 \u306e\u30a2\u30ec","author_name":"torus711","image_url":null,"published":"2024-09-22 18:52:50","title":"AtCoder Beginner Contest 372, D : Buildings","provider_name":"Hatena Blog","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorus711.hatenablog.com%2Fentry%2F2024%2F09%2F22%2F185250\" title=\"AtCoder Beginner Contest 372, D : Buildings - torus711 \u306e\u30a2\u30ec\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://torus711.hatenablog.com/","type":"rich","provider_url":"https://hatena.blog"}