<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>na_o_s</author_name>
  <author_url>https://blog.hatena.ne.jp/na_o_s/</author_url>
  <blog_title>na_o_ysのブログ</blog_title>
  <blog_url>https://na-o-s.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>問題 http://codeforces.com/contest/500/problem/C 本が N (&lt; 500) 冊ある. それぞれの本には重さがある. 本は全て重ねて積んだ状態である. 上から I 番目の本を読む場合には, I 番目の本を取り出して山の一番上に移動させる. この時, あなたには 1~I-1 番目の本の重量分の負荷がかかる. M (&lt; 1000) 日間, 1 日 1 冊の本を読みたい. I 日目に読む本は b[i] で与えられる. 同じ本を複数の日に読む場合もある. M 日間の負荷の最小値を求めよ. 方針 読み終わった本を上に重ねるので, 新しい本 B を読む場合の負荷は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fna-o-s.hateblo.jp%2Fentry%2F2014%2F12%2F31%2F035915&quot; title=&quot;Codeforces Good Bye 2014 C, New Year Book Reading - na_o_ysのブログ&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>2014-12-31 03:59:15</published>
  <title>Codeforces Good Bye 2014 C, New Year Book Reading</title>
  <type>rich</type>
  <url>https://na-o-s.hateblo.jp/entry/2014/12/31/035915</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
