<?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>Codeforces</anon>
    <anon>ダイクストラ</anon>
    <anon>グラフ</anon>
  </categories>
  <description>問題 問題概要 小麦屋さん以外の頂点でパン屋を開こうとする場合に、もっとも小麦屋さんから近くでパン屋を開ける頂点までの距離をもとめよ。開けないなら-1。 解法 ダイクストラで解いた。スタートをすべての小麦屋さんにして、それらの頂点からほかの頂点までの最短距離を求めた。さいごに、小麦屋さん以外の頂点で距離が最小のもとを答えとすればいい。 ほかの人の回答をみていたら、ダイクストラで書いている人はいなくて、小麦屋さんに隣接する小麦屋でない頂点までの距離の中で最短のものを答えとしている回答が多かった。パン屋を開けるなら確実に1つの頂点は小麦屋と隣接しているはずなので、こういう回答でいいよね。 ミス 完…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F10%2F03%2F125417&quot; title=&quot;codeforces 368 div2 B. Bakery - 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-03 12:54:17</published>
  <title>codeforces 368 div2 B. Bakery</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2016/10/03/125417</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
