<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nanikaka</author_name>
  <author_url>https://blog.hatena.ne.jp/nanikaka/</author_url>
  <blog_title>nanikakaのAOJ航海日誌</blog_title>
  <blog_url>https://nanikaka.hatenadiary.org/</blog_url>
  <categories>
    <anon>AOJ Volume11</anon>
  </categories>
  <description>問題リンク Hexerpents of Hexwamp 解法 方針は幅優先探索なのですが、ある蛇の状態から次の遷移先を作るのが非常に厄介です。その都度遷移先を計算していたら時間が厳しくなるので、最初に一括で遷移先状態を計算しておき、幅優先探索中はキャッシュされた遷移先を参照することにします。 まず、六角座標の隣接マスに0〜5の番号を付けます。自分のソースでは真上が0、時計回りに1, 2, 3...です。 蛇の状態は、頭の位置を起点にして、節がどうつながっているかで表すことにします。例えば、節が(0, 0)(0, 1)(-1, 2)という長さ3の蛇は、頭から、真下、左下という順に繋がっているので…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnanikaka.hatenadiary.org%2Fentry%2F20111102%2F1320204478&quot; title=&quot;AOJ1143 Hexerpents of Hexwamp - nanikakaのAOJ航海日誌&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>2011-11-02 12:27:58</published>
  <title>AOJ1143 Hexerpents of Hexwamp</title>
  <type>rich</type>
  <url>https://nanikaka.hatenadiary.org/entry/20111102/1320204478</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
