<?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>解法 先にワーシャルフロイドで陸路経由と海路経由それぞれについて全点対最短路を解く。あとは dp[配達し終えたノード][ボートの位置] = はじめの位置からの最短距離 としたDPを書けば良い。WarshallFloyd+DPでなく、普通にダイクストラでやろうとすると MLE や TLE を食らう。 int N, M; vector&lt;int&gt; z; int Land[210][210]; int Sea[210][210]; long long dp[1001][210]; #define INF (1&lt;&lt;29) int main() { while(cin &gt;&gt; N &gt;&gt; M &amp;&amp; (N|M)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140623%2F1403538561&quot; title=&quot;AOJ2200 Mr.Rito Post Office - 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-06-23 00:49:21</published>
  <title>AOJ2200 Mr.Rito Post Office</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140623/1403538561</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
