<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>itchyny</author_name>
  <author_url>https://blog.hatena.ne.jp/itchyny/</author_url>
  <blog_title>プログラムモグモグ</blog_title>
  <blog_url>https://itchyny.hatenablog.com/</blog_url>
  <categories>
    <anon>atcoder</anon>
  </categories>
  <description>A - 赤赤赤赤青 n個の中の特定の一つのブロックを隣り合うブロックの入れ替えによって両端のいずれかに移動する最小の回数。 main :: IO () main = getContents &gt;&gt;= print . (\[n, x] -&gt; min (x - 1) (n - x)) . map read . words B - □□□□□ n個のタイルをどれだけたくさん使ってできる限り正方形に並べられるか。指標は二辺の差と使い切れなかったタイルの数の和が最小のもの。 main :: IO () main = readLn &gt;&gt;= print . solve solve :: Int -&gt; Int …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitchyny.hatenablog.com%2Fentry%2F2016%2F06%2F18%2F230000&quot; title=&quot;AtCoder Beginner Contest 040 - プログラムモグモグ&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://blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-06-18 23:00:00</published>
  <title>AtCoder Beginner Contest 040</title>
  <type>rich</type>
  <url>https://itchyny.hatenablog.com/entry/2016/06/18/230000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
