<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mmxsrup</author_name>
  <author_url>https://blog.hatena.ne.jp/mmxsrup/</author_url>
  <blog_title>srupのメモ帳</blog_title>
  <blog_url>https://mmxsrup.hatenablog.com/</blog_url>
  <categories>
    <anon>全探索</anon>
  </categories>
  <description>問題 問題概要 省略 解法 奇数列のピラミッドに対して全探索を行う。i列のピラミッドを作るときに、足りないブロックの数と、余ったブロックの数それぞれの列に対してカウントする。答えは、足りないところに余りから追加するためのコストが、tarinaiで、 余りを足りないところに追加して、残った分を捨て置き場に移動するコストが、amari - tarianiである。よって答えは、tariani + amari - tarinai = amari となり、amariが答えとなる。それを奇数列のピラミッドすべてに対して行い最小値を求めればよい。 ミス 与えられた列の数より、多いピラミッドを作ることを考慮し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F10%2F22%2F222108&quot; title=&quot;yukicoder No.77 レンガのピラミッド - srupのメモ帳&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>2016-10-22 22:21:08</published>
  <title>yukicoder No.77 レンガのピラミッド</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2016/10/22/222108</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
