<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanpurin</author_name>
  <author_url>https://blog.hatena.ne.jp/kanpurin/</author_url>
  <blog_title>かんプリンの学習記録</blog_title>
  <blog_url>https://kanpurin.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>解説</anon>
    <anon>ABC</anon>
    <anon>グラフ</anon>
    <anon>動的計画法</anon>
    <anon>期待値</anon>
  </categories>
  <description>問題はこちら 問題概要 思考の流れ 提出プログラム 感想 問題概要 頂点辺の閉路のない有向グラフ(=DAG)が与えられる. 頂点から辺をたどって頂点Nに行くことを考える. 各頂点から出ている辺から等確率でランダムに選び進む. このグラフから一つだけ辺を取り除けるとき頂点に到達するまでに通る辺の数の期待値の最小値を求めよ. 思考の流れ まず辺を取り除かない場合の期待値は, グラフがDAGであることからDPで求められる. 具体的にはを「頂点からまでに通る辺の数の期待値の最小値」として となる. 1つの辺を取り除いたあと, その辺以降の頂点のDPの値は変わらない. その辺以前の頂点のDPの値を再計算…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanpurin.hatenablog.com%2Fentry%2F2020%2F05%2F02%2F153633&quot; title=&quot;ABC144 F - Fork in the Road - かんプリンの学習記録&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=%7B1%5Cle%20N%5Cle%2010%5E%7B5%7D%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-02 15:36:33</published>
  <title>ABC144 F - Fork in the Road</title>
  <type>rich</type>
  <url>https://kanpurin.hatenablog.com/entry/2020/05/02/153633</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
