<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>順列を題材とした問題</anon>
    <anon>操作</anon>
    <anon>データ構造</anon>
    <anon>セグメント木</anon>
    <anon>データ構造テク：全体に反映させる値を別にもつ(遅延評価)</anon>
    <anon>StarrySkyTree</anon>
    <anon>データ構造テク：差分更新</anon>
    <anon>考察：一部の変数を固定して考える</anon>
    <anon>in-place DP</anon>
    <anon>DP</anon>
    <anon>最小コスト</anon>
    <anon>CodeforcesR2200</anon>
    <anon>EducationalCodeforces</anon>
    <anon>遅延評価セグメント木</anon>
    <anon>最適化問題</anon>
  </categories>
  <description>これを思い出して迷走してしまった (それでも通る解法には至ったけど恐ろしく煩雑なものとなってしまった)。 drken1215.hatenablog.com なぜもっとシンプルに考えられなかったのか... 問題へのリンク 問題概要 の順列 と、各要素 を動かすのに必要なコスト が与えられる ( は index の要素を動かすコストではなく、要素 を動かすコスト)。 今、順列を左右に分ける。左右はそれぞれ empty ではないようにする。このとき、左の要素を選んで右に動かしたり、右の要素を選んで左に動かしたりすることで、「左側のどの要素も右側のどの要素よりも小さい」という状態を達成したい。 それに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2020%2F01%2F30%2F132200&quot; title=&quot;Educational Codeforces Round 81 E. Permutation Separation (R2200) - けんちょんの競プロ精進記録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://chart.apis.google.com/chart?cht=tx&amp;chl=%201%2C%202%2C%20%5Cdots%2C%20N</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-30 13:22:00</published>
  <title>Educational Codeforces Round 81 E. Permutation Separation (R2200)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2020/01/30/132200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
