<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d_tutuz</author_name>
  <author_url>https://blog.hatena.ne.jp/d_tutuz/</author_url>
  <blog_title>数学/競プロメモ</blog_title>
  <blog_url>https://tutuz.hateblo.jp/</blog_url>
  <categories>
    <anon>数え上げ</anon>
  </categories>
  <description>問題 https://beta.atcoder.jp/contests/arc044/tasks/arc044_b N 頂点のグラフが与えられる。頂点 1 から頂点 i への最短路を a_i とするように辺を張るとき、辺の張り方は何通りか求めよ。 考え方 自明なケースを除く。まず 1 から 1 への最短路は 0 であるから、頂点 1 の最短路が 0 以外の場合は 0 通りである。また 1 以外の頂点で最短路が 0 にすることはできないので、1 以外で最短路が 0 となっている頂点が存在する場合は 0 通りである。また、 最短路が連続になっていない頂点が存在する場合、つまり最短路が i と i+…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F07%2F29%2F183040&quot; title=&quot;ARC044-B：最短路問題 - 数学/競プロメモ&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>2018-07-29 18:30:40</published>
  <title>ARC044-B：最短路問題</title>
  <type>rich</type>
  <url>https://tutuz.hateblo.jp/entry/2018/07/29/183040</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
