<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://yukicoder.me/problems/no/771 前提知識 bitDP 解法 https://yukicoder.me/submissions/307901制約からbitDP感がある。 その方向で考えると、以下のDPができる。 dp[msk][lst] := 今までmskの本が本棚に入っていて、最後の本がlstのときの醜さ ここから、次の遷移先はO(N)ある。 次にnxtの本を入れるとき、しおり間距離は、B[lst]-A[lst]+A[nxt]となるので、それとの最大値を取り、 その最小値を更新していく。 int N, A[20], B[20]; int dp[1 &lt;&lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F02%2F214632&quot; title=&quot;しおり [yukicoder No.771] - はまやんはまやんはまやん&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-02 21:46:32</published>
  <title>しおり [yukicoder No.771]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/01/02/214632</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
