<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://atcoder.jp/contests/dp/tasks/dp_r 前提知識 行列累乗によるDP高速化 解説 https://atcoder.jp/contests/dp/submissions/3955540長さKがとても大きい＋Nが小さいという所から、行列累乗感がかなりある。 dp[k][cu] := 長さkの有向パスで最後の頂点がcuである有向パスの組み合わせ kが10^18なので、確実にできないが、注目すべきはその遷移である。 頂点cuから頂点toに有向辺があれば、dp[k+1][to] += dp[k][cu]という遷移をする。 これは全ての有向辺に言えることで、かつ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F12%2F143204&quot; title=&quot;Walk [Educational DP Contest / DP まとめコンテスト R] - はまやんはまやんはまやん&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>2019-01-12 14:32:04</published>
  <title>Walk [Educational DP Contest / DP まとめコンテスト R]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/01/12/143204</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
