<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_orz</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_orz/</author_url>
  <blog_title>てきとーな日記</blog_title>
  <blog_url>https://wata-orz.hatenadiary.org/</blog_url>
  <categories>
    <anon>TopCoder</anon>
  </categories>
  <description>TCOのシードを得るために一年ぶりに参戦 結果は11位orz まぁ、久しぶり過ぎた上に時間がなさすぎたのでしょうがない… 方針はまず、何段にするかと、それぞれの段の高さを決めるために、次のように制約をきつくした問題を考え、それを解くことにした。 i段目に入っている本はi+1段目に入っているどの本よりも高さが低い こういう制約を付けると次のような二段階のDPにより最適解を求めることができる。 まず、本を高さでソートする dp1[i][j] := [i,j]から幅Wで選ぶときの最大価値 dp1[i][j]の計算はiを固定しておいて、ナップサックするだけ サイズが大きいと計算量がやばいので、ナップサ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwata-orz.hatenadiary.org%2Fentry%2F20100504%2F1272988763&quot; title=&quot;Marathon Match 59 - てきとーな日記&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>2010-05-04 00:59:23</published>
  <title>Marathon Match 59</title>
  <type>rich</type>
  <url>https://wata-orz.hatenadiary.org/entry/20100504/1272988763</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
