<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>AOJ</anon>
  </categories>
  <description>解法 BFS (or Warshall-Floyd) BFSではノードの接続を隣接行列でなくて連結リストにして解いたけどその必要はあったのだろうか。 因みにnは100以下なので、コストを1に定めて Warshall-Floyd しても解ける。この方が実装が短いし、一度最短路を求めればクエリに対しての処理が楽になるので良い。反省点 問題文を読むときは１度で意味を取れるように読むこと。 問題文が読めれば実装は自明なはず。 ノードの入力を全て0-indexedに治す所とかは注意する。さすがにBFSは慣れてるだろうと、問題文読むのに一番時間が掛かったとしても20分くらいで書きたいところだった。けど実際…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140328%2F1395383822&quot; title=&quot;AOJ0144 Packet Transportation - Logfiles&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-03-28 15:37:02</published>
  <title>AOJ0144 Packet Transportation</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140328/1395383822</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
